Forked from
PortalMEC / portalmec
2138 commits behind the upstream repository.
-
Mateus Rambo Strey authoredMateus Rambo Strey authored
20160128115107_create_views.rb 273 B
class CreateViews < ActiveRecord::Migration
def change
create_table :views do |t|
t.references :viewable, polymorphic: true, index: true
t.references :user, index: true
t.timestamps null: false
end
add_foreign_key :views, :users
end
end