metamaps--metamaps/db/migrate/20160820231717_star.rb

10 lines
194 B
Ruby
Raw Normal View History

2016-08-20 21:09:29 -04:00
class Star < ActiveRecord::Migration
def change
create_table :stars do |t|
t.references :user, index: true
t.references :map, index: true
t.timestamps
end
end
end