mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-22 23:48:18 +08:00
7 lines
208 B
Ruby
7 lines
208 B
Ruby
|
class AddAuthenticationTokenToUsers < ActiveRecord::Migration
|
||
|
def change
|
||
|
add_column :users, :authentication_token, :string, limit: 30
|
||
|
add_index :users, :authentication_token, unique: true
|
||
|
end
|
||
|
end
|