Commit 1b162bdb authored by Aleksei Kvitinskii's avatar Aleksei Kvitinskii

corrected last migration

parent 883fa9bf
class ChangeSocialFieldsInUsers < ActiveRecord::Migration class ChangeSocialFieldsInUsers < ActiveRecord::Migration
def up def up
change_column(:users, :skype, :string, {:null => false, :default => ''}) remove_column :users, :skype
change_column(:users, :linkedin, :string, {:null => false, :default => ''}) remove_column :users, :linkedin
change_column(:users, :twitter, :string, {:null => false, :default => ''}) 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 end
def down def down
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment