metamaps--metamaps/db/migrate/20161218183817_add_source_to_maps.rb

6 lines
141 B
Ruby
Raw Normal View History

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