From: Shaun McDonald Date: Tue, 30 Sep 2008 15:44:55 +0000 (+0000) Subject: wrong foreign key command in the migration X-Git-Tag: live~8563^2~298 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/7252ffa8207855229123ae466ca7d29e72f8a6a0 wrong foreign key command in the migration --- diff --git a/db/migrate/020_add_changesets.rb b/db/migrate/020_add_changesets.rb index 95a9bdbd6..1c599de01 100644 --- a/db/migrate/020_add_changesets.rb +++ b/db/migrate/020_add_changesets.rb @@ -38,7 +38,7 @@ class AddChangesets < ActiveRecord::Migration @@conv_user_tables.each { |tbl| rename_column tbl, :user_id, :changeset_id #foreign keys too - add_foreign_key tbl, :changeset_id, [:id], :users + add_foreign_key tbl, [:changeset_id], :users } end