Migrate to Postgresql for better network handling. Add more user functionality.
This commit is contained in:
13
db/migrate/007_create_sessions.rb
Normal file
13
db/migrate/007_create_sessions.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class CreateSessions < ActiveRecord::Migration[8.1]
|
||||
def change
|
||||
create_table :sessions, force: :cascade do |t|
|
||||
t.references :user, null: false, foreign_key: true, index: true
|
||||
t.inet :ip_address
|
||||
t.string :user_agent
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user