metamaps--metamaps/db/migrate/20160820231717_star.rb
Connor Turland 19dabe81cc Enable users to star maps, and to see their starred collection (#615)
* enable starring

* users should be able to star others maps

* proper star icon

* starred maps display as starred without refreshing

* oops

* make phrasing clearer
2016-08-31 16:58:49 -04:00

9 lines
194 B
Ruby

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