Limit index key length when creating oembed caches
This commit is contained in:
parent
7057f77924
commit
7f4bc5550d
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ class CreateOEmbedCaches < ActiveRecord::Migration
|
|||
t.string :url, :limit => 1024, :null => false, :unique => true
|
||||
t.text :data, :null => false
|
||||
end
|
||||
add_index :o_embed_caches, :url
|
||||
add_index :o_embed_caches, :url, :length => { :url => 255 }
|
||||
end
|
||||
|
||||
def self.down
|
||||
|
|
|
|||
Loading…
Reference in a new issue