Skip to content

Commit

Permalink
Change edit-id of all restrooms to their id
Browse files Browse the repository at this point in the history
With migration.
  • Loading branch information
stardust66 committed Jun 13, 2018
1 parent b3e30d7 commit 467467d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions db/migrate/20180613231032_set_edit_id_to_id.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class SetEditIdToId < ActiveRecord::Migration[5.1]
def change
Restroom.update_all('edit_id = id')
end
end
2 changes: 1 addition & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 20180306165419) do
ActiveRecord::Schema.define(version: 20180613231032) do

# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
Expand Down

0 comments on commit 467467d

Please sign in to comment.