From d19076d0ed7e077e33d1b7606b6186f99e994943 Mon Sep 17 00:00:00 2001 From: Shaun McDonald Date: Tue, 30 Sep 2008 15:52:54 +0000 Subject: [PATCH] wrong foreign key command in the migration --- db/migrate/020_add_changesets.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/020_add_changesets.rb b/db/migrate/020_add_changesets.rb index 1c599de01..c21b50782 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], :users + add_foreign_key tbl, [:changeset_id], :users, [:id] } end -- 2.39.5