feat(migrate): add AddRememberTokenToUsers, down and CreateLoginSessions
This commit is contained in:
1 parent
56b040c2ad
commit
d9f5a673e3
12 files changed
+116
No files matched your search
@@ -0,0 +1,13 @@
|
||||
class CreateLoginSessions < Prism::Orm::Migration
|
||||
def up
|
||||
create_table :login_sessions do |t|
|
||||
t.integer :user_id
|
||||
t.string :token
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
|
||||
def down
|
||||
drop_table :login_sessions
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user