scinote-web/db/migrate/20161129171012_add_authentication_token_to_users.rb

7 lines
213 B
Ruby
Raw Normal View History

2017-06-30 16:23:28 +08:00
class AddAuthenticationTokenToUsers < ActiveRecord::Migration[4.2]
def change
add_column :users, :authentication_token, :string, limit: 30
add_index :users, :authentication_token, unique: true
end
end