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
def up | |
rename_column :table_name, :old_id_col, :id | |
change_column :table_name, :id, :primary_key | |
end | |
def down | |
rename_column :table_name, :id, :old_id_col | |
change_column :table_name, :old_id_col, :integer, :null => true | |
remove_column :table_name, :id | |
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
worker_processes 1; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
server { | |
listen 443; | |
server_name localhost; |
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
# hide and show finder desktop | |
alias hidedesktop='defaults write com.apple.finder CreateDesktop -bool false && killall Finder' | |
alias showdesktop='defaults write com.apple.finder CreateDesktop -bool true && killall Finder' |