Skip to content
Snippets Groups Projects
Commit 86021a7d authored by Aleksei Kvitinskii's avatar Aleksei Kvitinskii
Browse files

corrected last migration

parent dde28795
No related branches found
No related tags found
No related merge requests found
class ChangeSocialFieldsInUsers < ActiveRecord::Migration
def up
change_column(:users, :skype, :string, {:null => false, :default => ''})
change_column(:users, :linkedin, :string, {:null => false, :default => ''})
change_column(:users, :twitter, :string, {:null => false, :default => ''})
remove_column :users, :skype
remove_column :users, :linkedin
remove_column :users, :twitter
add_column :users, :skype, :string, {:null => false, :default => ''}
add_column :users, :linkedin, :string, {:null => false, :default => ''}
add_column :users, :twitter, :string, {:null => false, :default => ''}
end
 
def down
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment