change concat() to || for pgSQL

This commit is contained in:
Justin Thomas 2012-03-30 11:45:50 -07:00
parent 125be41868
commit 14a0e9c586

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