scinote-web/db/migrate/20181008130519_create_view_states.rb

14 lines
285 B
Ruby
Raw Normal View History

# 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