2011-10-21 14:56:37 +02:00
|
|
|
class ChangeSocialFieldsInUsers < ActiveRecord::Migration
|
|
|
|
def up
|
2011-10-21 15:36:33 +02:00
|
|
|
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 => ''}
|
2011-10-21 14:56:37 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
end
|
|
|
|
end
|