metamaps--metamaps/db/migrate/20170209215819_create_follows.rb

10 lines
235 B
Ruby
Raw Normal View History

2017-02-09 22:01:09 +00:00
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