metamaps--metamaps/db/migrate/20170209215819_create_follows.rb
Connor Turland 713f731aaf follows
2017-02-10 00:37:25 +00:00

12 lines
358 B
Ruby

class CreateFollows < ActiveRecord::Migration[5.0]
def change
create_table :follows do |t|
t.references :user, index: true
t.boolean :email, default: true
t.boolean :app, default: true
t.boolean :push, default: true
t.references :followed, polymorphic: true, index: true
t.timestamps
end
end
end