This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class DenormalizeProjectStatus < ActiveRecord::Migration | |
def up | |
add_column :projects, :status, :string, limit: 32 | |
execute %q(UPDATE projects p SET status = (SELECT name FROM statuses s WHERE s.id = p.status_id)) | |
change_column :projects, :status, :string, null: false, limit: 32 | |
remove_column :projects, :status_id | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# init | |
function pause(){ | |
read -p "$*" | |
} | |
# Updated for El-Capitan | |
echo "1. A Rails Services Admin Account" | |
echo - e "Create an account that you'll use to administer the Rails applications , PSQL and other stuff, \n | |
keep it seperate from your root account and your personal account." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install Windows Terminal | |
https://aka.ms/terminal | |
In Windows Powershell as Administrator (C:\>) | |
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart | |
Restart Windows | |
Inn Windows Powershell as Administrator (C:\>) | |
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart |