gitlabhq/db/migrate/20111021101550_change_social_fields_in_users.rb
Dmitriy Zaporozhets 6b030fd41d 1.1pre1
2011-10-21 20:04:41 +03:00

15 lines
424 B
Ruby

class ChangeSocialFieldsInUsers < ActiveRecord::Migration
def up
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
end
end