retrospring/db/migrate/20140801103309_add_screen_name_to_users.rb
2020-04-19 18:10:31 +02:00

6 lines
175 B
Ruby

class AddScreenNameToUsers < ActiveRecord::Migration[4.2]
def change
add_column :users, :screen_name, :string
add_index :users, :screen_name, unique: true
end
end