Merge pull request #3089 from justindthomas/fix-migration

change concat() to || for pgSQL
This commit is contained in:
Maxwell Salzberg 2012-03-31 09:27:53 -07:00
commit 302346bcdb

View file

@ -2,7 +2,7 @@ class RemoveInvitationEmailFromUsers < ActiveRecord::Migration
def self.up
execute <<-SQL
UPDATE users
SET email = concat('invitemail_', id, '@example.org')
SET email = 'invitemail_' || id || '@example.org'
WHERE invitation_token IS NOT NULL
SQL
end