mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-28 03:06:28 +08:00
14 lines
285 B
Ruby
14 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
|