From 5fa16d4815cd9e33c9685097be02ed0e3bd127bb Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Mon, 21 Dec 2009 12:03:21 -0300 Subject: [PATCH] Updating database schema. --- db/schema.rb | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/db/schema.rb b/db/schema.rb index 2f6a5d6..bf6c347 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 => 77) do +ActiveRecord::Schema.define(:version => 78) do create_table "article_versions", :force => true do |t| t.integer "article_id" @@ -88,8 +88,8 @@ ActiveRecord::Schema.define(:version => 77) do t.boolean "virtual", :default => false end - add_index "articles_categories", ["category_id"], :name => "index_articles_categories_on_category_id" add_index "articles_categories", ["article_id"], :name => "index_articles_categories_on_article_id" + add_index "articles_categories", ["category_id"], :name => "index_articles_categories_on_category_id" create_table "blocks", :force => true do |t| t.string "title" @@ -103,10 +103,10 @@ ActiveRecord::Schema.define(:version => 77) do t.datetime "fetched_at" end - add_index "blocks", ["type"], :name => "index_blocks_on_type" - add_index "blocks", ["fetched_at"], :name => "index_blocks_on_fetched_at" - add_index "blocks", ["enabled"], :name => "index_blocks_on_enabled" add_index "blocks", ["box_id"], :name => "index_blocks_on_box_id" + add_index "blocks", ["enabled"], :name => "index_blocks_on_enabled" + add_index "blocks", ["fetched_at"], :name => "index_blocks_on_fetched_at" + add_index "blocks", ["type"], :name => "index_blocks_on_type" create_table "boxes", :force => true do |t| t.string "owner_type" @@ -136,8 +136,8 @@ ActiveRecord::Schema.define(:version => 77) do t.boolean "virtual", :default => false end - add_index "categories_profiles", ["profile_id"], :name => "index_categories_profiles_on_profile_id" add_index "categories_profiles", ["category_id"], :name => "index_categories_profiles_on_category_id" + add_index "categories_profiles", ["profile_id"], :name => "index_categories_profiles_on_profile_id" create_table "comments", :force => true do |t| t.string "title" @@ -159,7 +159,8 @@ ActiveRecord::Schema.define(:version => 77) do t.string "name" t.string "owner_type" t.integer "owner_id" - t.boolean "is_default", :default => false + t.boolean "is_default", :default => false + t.string "google_maps_key" end create_table "environments", :force => true do |t| @@ -189,8 +190,8 @@ ActiveRecord::Schema.define(:version => 77) do t.integer "update_errors", :default => 0 end - add_index "external_feeds", ["fetched_at"], :name => "index_external_feeds_on_fetched_at" add_index "external_feeds", ["enabled"], :name => "index_external_feeds_on_enabled" + add_index "external_feeds", ["fetched_at"], :name => "index_external_feeds_on_fetched_at" create_table "favorite_enteprises_people", :id => false, :force => true do |t| t.integer "person_id" @@ -224,8 +225,8 @@ ActiveRecord::Schema.define(:version => 77) do t.datetime "updated_at" end - add_index "product_categorizations", ["product_id"], :name => "index_product_categorizations_on_product_id" add_index "product_categorizations", ["category_id"], :name => "index_product_categorizations_on_category_id" + add_index "product_categorizations", ["product_id"], :name => "index_product_categorizations_on_product_id" create_table "products", :force => true do |t| t.integer "enterprise_id" @@ -305,8 +306,8 @@ ActiveRecord::Schema.define(:version => 77) do t.datetime "created_at" end - add_index "taggings", ["taggable_id", "taggable_type"], :name => "index_taggings_on_taggable_id_and_taggable_type" add_index "taggings", ["tag_id"], :name => "index_taggings_on_tag_id" + add_index "taggings", ["taggable_id", "taggable_type"], :name => "index_taggings_on_taggable_id_and_taggable_type" create_table "tags", :force => true do |t| t.string "name" -- libgit2 0.21.2