scinote-web/db/migrate/20181008130519_create_view_states.rb
2018-10-10 16:15:31 +02:00

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