Permalink
Browse files

use quoted strings instead of symbols

  • Loading branch information...
1 parent d4b48bf commit 6eba899df19a7b39fe5264edbb4e0a3575df8632 @saturnflyer saturnflyer committed Jun 15, 2010
Showing with 11 additions and 11 deletions.
  1. +10 −10 db/migrate/20081203140407_add_indexes.rb
  2. +1 −1 db/schema.rb
@@ -1,19 +1,19 @@
class AddIndexes < ActiveRecord::Migration
def self.up
- add_index :pages, :class_name, :name => :pages_class_name
- add_index :pages, :parent_id, :name => :pages_parent_id
- add_index :pages, %w{slug parent_id}, :name => :pages_child_slug
- add_index :pages, %w{virtual status_id}, :name => :pages_published
+ add_index :pages, :class_name, :name => 'pages_class_name'
+ add_index :pages, :parent_id, :name => 'pages_parent_id'
+ add_index :pages, %w{slug parent_id}, :name => 'pages_child_slug'
+ add_index :pages, %w{virtual status_id}, :name => 'pages_published'
- add_index :page_parts, %w{page_id name}, :name => :parts_by_page
+ add_index :page_parts, %w{page_id name}, :name => 'parts_by_page'
end
def self.down
- remove_index :page_parts, :name => :parts_by_page
+ remove_index :page_parts, :name => 'parts_by_page'
- remove_index :pages, :name => :pages_published
- remove_index :pages, :name => :pages_child_slug
- remove_index :pages, :name => :pages_parent_id
- remove_index :pages, :name => :pages_class_name
+ remove_index :pages, :name => 'pages_published'
+ remove_index :pages, :name => 'pages_child_slug'
+ remove_index :pages, :name => 'pages_parent_id'
+ remove_index :pages, :name => 'pages_class_name'
end
end
View
@@ -9,7 +9,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20100322181527) do
+ActiveRecord::Schema.define(:version => 20091003095744) do
create_table "config", :force => true do |t|
t.string "key", :limit => 40, :default => "", :null => false

0 comments on commit 6eba899

Please sign in to comment.