Merge pull request #3089 from justindthomas/fix-migration
change concat() to || for pgSQL
This commit is contained in:
commit
302346bcdb
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@ class RemoveInvitationEmailFromUsers < ActiveRecord::Migration
|
||||||
def self.up
|
def self.up
|
||||||
execute <<-SQL
|
execute <<-SQL
|
||||||
UPDATE users
|
UPDATE users
|
||||||
SET email = concat('invitemail_', id, '@example.org')
|
SET email = 'invitemail_' || id || '@example.org'
|
||||||
WHERE invitation_token IS NOT NULL
|
WHERE invitation_token IS NOT NULL
|
||||||
SQL
|
SQL
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue