karim_app/db/migrate/20180317222007_create_edit_watchers.rb
Nicolas Bally a0a3cfd6fe initial
2018-06-11 01:40:28 +02:00

13 lines
288 B
Ruby

class CreateEditWatchers < ActiveRecord::Migration
def change
create_table :edit_watchers do |t|
t.string :element_type
t.integer :element_id
t.string :key
t.references :admin, index: true, foreign_key: true
t.timestamps null: false
end
end
end