2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# File 'lib/generators/tolaria/install/templates/administrators_migration.rb', line 2
def change
create_table :administrators, force:true do |t|
t.timestamps null:false
t.string :email, null:false, index:true
t.string :name, null:false
t.string :organization, null:false
t.string :passcode, limit:60, null:false
t.datetime :passcode_expires_at, null:false
t.string :auth_token, limit:32, null:false, index:true
t.datetime :account_unlocks_at, null:false
t.integer :lockout_strikes, null:false, default:0
t.integer :total_strikes, null:false, default:0
t.integer :sessions_created, null:false, default:0
end
end
|