From 816404ffe63a6b83340c130c53aa1772873043c6 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 16 Feb 2015 22:53:52 +0000 Subject: [PATCH] Avoid deprecation warning in migration --- db/migrate/20150111192335_subscribe_old_changesets.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20150111192335_subscribe_old_changesets.rb b/db/migrate/20150111192335_subscribe_old_changesets.rb index 2bc021476..cd0938318 100644 --- a/db/migrate/20150111192335_subscribe_old_changesets.rb +++ b/db/migrate/20150111192335_subscribe_old_changesets.rb @@ -1,7 +1,7 @@ class SubscribeOldChangesets < ActiveRecord::Migration def up Changeset.find_each do |changeset| - changeset.subscribers << changeset.user unless changeset.subscribers.exists?(changeset.user) + changeset.subscribers << changeset.user unless changeset.subscribers.exists?(changeset.user.id) end end -- 2.39.5