Permalink
Browse files

Bugfix: correct column name in migration

  • Loading branch information...
benilovj committed Mar 6, 2014
1 parent 8685615 commit 9720c04ee211a6a7086fe4765da422767045d47c
@@ -1,7 +1,7 @@
class MoveAllUserSpecifiedLinksForLongFormFeedback < ActiveRecord::Migration
def up
ActiveRecord::Base.connection.execute("UPDATE anonymous_contacts
- SET user_specified_link = url
+ SET user_specified_url = url
WHERE type = 'Support::Requests::Anonymous::LongFormContact'
AND url IS NOT NULL")
ActiveRecord::Base.connection.execute("UPDATE anonymous_contacts
@@ -14,9 +14,9 @@ def down
SET url = NULL
WHERE type = 'Support::Requests::Anonymous::LongFormContact'")
ActiveRecord::Base.connection.execute("UPDATE anonymous_contacts
- SET url = user_specified_link
+ SET url = user_specified_url
WHERE type = 'Support::Requests::Anonymous::LongFormContact'
- AND user_specified_link IS NOT NULL")
+ AND user_specified_url IS NOT NULL")
end
end

0 comments on commit 9720c04

Please sign in to comment.