From 017d55625a96d613f0088c172219719dff0ca72f Mon Sep 17 00:00:00 2001 From: Daniela Soares Feitosa Date: Wed, 8 Aug 2012 13:32:33 -0300 Subject: [PATCH] Updated db/schema with new profile fields --- db/migrate/20120710062802_fill_is_template_field_on_basic_templates.rb | 2 +- db/schema.rb | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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 9a89800..887060b 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 = 't' where identifier like '%_template'") + update("update profiles set is_template = (1==1) where identifier like '%_template'") end def self.down diff --git a/db/schema.rb b/db/schema.rb index a683092..b3e4e77 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -9,7 +9,7 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20120411132751) do +ActiveRecord::Schema.define(:version => 20120718145131) do create_table "abuse_reports", :force => true do |t| t.integer "reporter_id" @@ -425,6 +425,8 @@ ActiveRecord::Schema.define(:version => 20120411132751) do t.boolean "validated", :default => true t.string "cnpj" t.string "national_region_code" + t.boolean "is_template", :default => false + t.integer "template_id" end add_index "profiles", ["environment_id"], :name => "index_profiles_on_environment_id" -- libgit2 0.21.2