metamaps--metamaps/db/migrate/20161216174257_add_updated_by_to_mappings.rb
2016-12-16 16:43:24 -05:00

5 lines
159 B
Ruby

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