diff --git a/db/migrate/20240118083525_add_sessions_table.rb b/db/migrate/20240118083525_add_sessions_table.rb new file mode 100644 index 0000000..855e0c0 --- /dev/null +++ b/db/migrate/20240118083525_add_sessions_table.rb @@ -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