Permalink
Browse files

corrected last migration

  • Loading branch information...
gitlabhq
gitlabhq committed Oct 21, 2011
1 parent 9fa4df1 commit 1c2660729003932183ec6c7973e4ee15192f99d7
Showing with 7 additions and 3 deletions.
  1. +7 −3 db/migrate/20111021101550_change_social_fields_in_users.rb
@@ -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

0 comments on commit 1c26607

Please sign in to comment.