Commit 1c2660729003932183ec6c7973e4ee15192f99d7
1 parent
9fa4df16
Exists in
master
and in
4 other branches
corrected last migration
Showing
1 changed file
with
7 additions
and
3 deletions
Show diff stats
db/migrate/20111021101550_change_social_fields_in_users.rb
| 1 | 1 | class ChangeSocialFieldsInUsers < ActiveRecord::Migration |
| 2 | 2 | def up |
| 3 | - change_column(:users, :skype, :string, {:null => false, :default => ''}) | |
| 4 | - change_column(:users, :linkedin, :string, {:null => false, :default => ''}) | |
| 5 | - change_column(:users, :twitter, :string, {:null => false, :default => ''}) | |
| 3 | + remove_column :users, :skype | |
| 4 | + remove_column :users, :linkedin | |
| 5 | + remove_column :users, :twitter | |
| 6 | + | |
| 7 | + add_column :users, :skype, :string, {:null => false, :default => ''} | |
| 8 | + add_column :users, :linkedin, :string, {:null => false, :default => ''} | |
| 9 | + add_column :users, :twitter, :string, {:null => false, :default => ''} | |
| 6 | 10 | end |
| 7 | 11 | |
| 8 | 12 | def down | ... | ... |