metamaps--metamaps/db/migrate/20160312234946_create_events.rb

12 lines
305 B
Ruby
Raw Permalink Normal View History

2016-03-13 00:24:00 +00:00
class CreateEvents < ActiveRecord::Migration
def change
create_table :events do |t|
t.string :kind, limit: 255
t.references :eventable, polymorphic: true, index: true
t.references :user, index: true
t.references :map, index: true
t.timestamps
end
end
end