retrospring/db/migrate/20140801103309_add_screen_name_to_users.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
206 B
Ruby
Raw Normal View History

2023-10-20 01:37:34 +02:00
# frozen_string_literal: true
class AddScreenNameToUsers < ActiveRecord::Migration[4.2]
2014-08-01 15:27:08 +02:00
def change
add_column :users, :screen_name, :string
add_index :users, :screen_name, unique: true
end
end