metamaps--metamaps/db/migrate/20170209215819_create_follows.rb
2017-02-11 00:01:20 -05:00

9 lines
235 B
Ruby

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