metamaps--metamaps/db/migrate/20161216174257_add_updated_by_to_mappings.rb

6 lines
159 B
Ruby
Raw Normal View History

class AddUpdatedByToMappings < ActiveRecord::Migration[5.0]
def change
add_reference :mappings, :updated_by, foreign_key: {to_table: :users}
end
end