]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/021_add_changesets.rb
Moving AUTO_INCREMENTs to monkeypatching. Seems a bit hacky though
[rails.git] / db / migrate / 021_add_changesets.rb
index 9b769c772a0ce2790e25f774ec8ca3c6b6400f54..e0cf3904a50d8ea98f79e40d1e20f5f8707336ae 100644 (file)
@@ -28,7 +28,7 @@ class AddChangesets < ActiveRecord::Migration
     # all the changesets will have the id of the user that made them.
     # We need to generate a changeset for each user in the database
     execute "INSERT INTO changesets (id, user_id, created_at, open)" + 
-      "SELECT id, id, creation_time, 0 from users;"
+      "SELECT id, id, creation_time, false from users;"
 
     @@conv_user_tables.each { |tbl|
       rename_column tbl, :user_id, :changeset_id