mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-07 08:01:51 +08:00
15 lines
318 B
Ruby
15 lines
318 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
class AddSessionsTable < ActiveRecord::Migration[7.0]
|
||
|
def change
|
||
|
create_table :sessions do |t|
|
||
|
t.string :session_id, null: false
|
||
|
t.jsonb :data
|
||
|
t.timestamps
|
||
|
end
|
||
|
|
||
|
add_index :sessions, :session_id, unique: true
|
||
|
add_index :sessions, :updated_at
|
||
|
end
|
||
|
end
|