metamaps--metamaps/db/migrate/20161216174257_add_updated_by_to_mappings.rb
Connor Turland fb12c7e202 Track everything we need to reconstruct maps (#984)
* feature/more.events

* keep mapping.user as the creator

* cleanup cruft and include slack notifs

* capture topic and synapse updates, store the old values

* avoid the mapping gets deleted problem

* include an indicator of which values changed

* style cleanup

* remove the hack in favor of a legit way

* updated schema file
2016-12-16 16:51:52 -05:00

6 lines
159 B
Ruby

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