20111021101550_change_social_fields_in_users.rb 424 Bytes
Newer Older
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
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