corrected last migration
This commit is contained in:
parent
dde2879589
commit
86021a7dc3
1 changed files with 7 additions and 3 deletions
|
@ -1,8 +1,12 @@
|
|||
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…
Reference in a new issue