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
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue