mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-10 17:36:33 +08:00
6 lines
213 B
Ruby
6 lines
213 B
Ruby
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
|