From 9babe35b50bf972785a4afc81c7894b4bacc762d Mon Sep 17 00:00:00 2001 From: Daniela Soares Feitosa Date: Fri, 10 Aug 2012 11:34:26 -0300 Subject: [PATCH] Fixing migration to work on postgres --- db/migrate/20120710062802_fill_is_template_field_on_basic_templates.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20120710062802_fill_is_template_field_on_basic_templates.rb b/db/migrate/20120710062802_fill_is_template_field_on_basic_templates.rb index 887060b..2a325f5 100644 --- a/db/migrate/20120710062802_fill_is_template_field_on_basic_templates.rb +++ b/db/migrate/20120710062802_fill_is_template_field_on_basic_templates.rb @@ -1,6 +1,6 @@ class FillIsTemplateFieldOnBasicTemplates < ActiveRecord::Migration def self.up - update("update profiles set is_template = (1==1) where identifier like '%_template'") + update("update profiles set is_template = (1=1) where identifier like '%_template'") end def self.down -- libgit2 0.21.2