1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-21 14:19:39 +02:00
Maybe/db/migrate/20241003163448_create_sessions.rb
Zach Gollwitzer 1ffa13f3b3
Use DB for auth sessions (#1233)
* DB sessions

* Validations for profile image
2024-10-03 14:42:22 -04:00

13 lines
325 B
Ruby

class CreateSessions < ActiveRecord::Migration[7.2]
def change
create_table :sessions, id: :uuid do |t|
t.references :user, null: false, foreign_key: true, type: :uuid
t.string :user_agent
t.string :ip_address
t.timestamps
end
remove_column :users, :last_login_at, :datetime
end
end