Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Move migrations to correct location

  • Loading branch information...
commit a546a044a8dac612fd84f3da4ff26d63c03606a3 1 parent ab147d1
@jomz jomz authored
View
0  db/20111124233701_add_ancestry_to_pages.rb → db/migrate/20111124233701_add_ancestry_to_pages.rb
File renamed without changes
View
0  db/20111125001223_remove_parent_id_from_pages.rb → ...ate/20111125001223_remove_parent_id_from_pages.rb
File renamed without changes
View
8 db/schema.rb
@@ -9,7 +9,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20110902203823) do
+ActiveRecord::Schema.define(:version => 20111125001223) do
create_table "assets", :force => true do |t|
t.string "caption"
@@ -80,7 +80,6 @@
t.string "breadcrumb", :limit => 160
t.string "class_name", :limit => 25
t.integer "status_id", :default => 1, :null => false
- t.integer "parent_id"
t.integer "layout_id"
t.datetime "created_at"
t.datetime "updated_at"
@@ -90,11 +89,12 @@
t.boolean "virtual", :default => false, :null => false
t.integer "lock_version", :default => 0
t.string "allowed_children_cache", :default => ""
+ t.string "ancestry"
end
+ add_index "pages", ["ancestry"], :name => "index_pages_on_ancestry"
add_index "pages", ["class_name"], :name => "altered_pages_class_name"
- add_index "pages", ["parent_id"], :name => "altered_pages_parent_id"
- add_index "pages", ["slug", "parent_id"], :name => "altered_pages_child_slug"
+ add_index "pages", ["slug"], :name => "altered_pages_child_slug"
add_index "pages", ["virtual", "status_id"], :name => "altered_pages_published"
create_table "sessions", :force => true do |t|
Please sign in to comment.
Something went wrong with that request. Please try again.