Skip to content
Browse files

optimizing locale index size

  • Loading branch information...
1 parent 0a5e09f commit 880f1dd3304e62e71386c9769d74869e5cd8351a @itgod itgod committed with parndt Mar 21, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 db/migrate/20101217113424_add_locale_to_slugs.rb
View
2 db/migrate/20101217113424_add_locale_to_slugs.rb
@@ -1,6 +1,6 @@
class AddLocaleToSlugs < ActiveRecord::Migration
def self.up
- add_column :slugs, :locale, :string
+ add_column :slugs, :locale, :string, :limit => 2
add_index :slugs, :locale
end

0 comments on commit 880f1dd

Please sign in to comment.
Something went wrong with that request. Please try again.