metamaps--metamaps/db/migrate/20161218183817_add_source_to_maps.rb
Connor Turland 2beaa2e5be track forks
2016-12-18 14:18:58 -05:00

5 lines
141 B
Ruby

class AddSourceToMaps < ActiveRecord::Migration[5.0]
def change
add_reference :maps, :source, foreign_key: {to_table: :maps}
end
end