diff --git a/db/migrate/20130903123015_create_friendly_id_slugs.rb b/db/migrate/20130903123015_create_friendly_id_slugs.rb index 48ce4de..c92a34b 100644 --- a/db/migrate/20130903123015_create_friendly_id_slugs.rb +++ b/db/migrate/20130903123015_create_friendly_id_slugs.rb @@ -8,7 +8,7 @@ t.datetime :created_at end add_index :friendly_id_slugs, :sluggable_id - add_index :friendly_id_slugs, [:slug, :sluggable_type], :unique => true, :length => {:slug => 191, :sluggable_type => 191} + add_index :friendly_id_slugs, [:slug, :sluggable_type], :unique => true, :length => {:slug => 191, :sluggable_type => 40} add_index :friendly_id_slugs, :sluggable_type end