Limit index key length when creating oembed caches

This commit is contained in:
Oliver Azevedo Barnes 2013-07-31 14:42:49 -05:00
parent 7057f77924
commit 7f4bc5550d

View file

@ -4,7 +4,7 @@ class CreateOEmbedCaches < ActiveRecord::Migration
t.string :url, :limit => 1024, :null => false, :unique => true t.string :url, :limit => 1024, :null => false, :unique => true
t.text :data, :null => false t.text :data, :null => false
end end
add_index :o_embed_caches, :url add_index :o_embed_caches, :url, :length => { :url => 255 }
end end
def self.down def self.down