mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-16 22:25:30 +08:00
13 lines
285 B
Ruby
13 lines
285 B
Ruby
# frozen_string_literal:true
|
|
|
|
class CreateViewStates < ActiveRecord::Migration[5.1]
|
|
def change
|
|
create_table :view_states do |t|
|
|
t.jsonb :state
|
|
t.references :user, foreign_key: true
|
|
t.references :viewable, polymorphic: true
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|