Skip to content

Commit

Permalink
fix: session store migration file
Browse files Browse the repository at this point in the history
  • Loading branch information
rsdeus committed Jan 18, 2024
1 parent 6d88ce5 commit ce64d9b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions db/migrate/20240118083525_add_sessions_table.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
class AddSessionsTable < ActiveRecord::Migration[6.1]
def change
create_table :sessions do |t|
t.string :session_id, :null => false
t.text :data
t.timestamps
end

add_index :sessions, :session_id, :unique => true
add_index :sessions, :updated_at
end
end

0 comments on commit ce64d9b

Please sign in to comment.