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