Skip to content

Commit

Permalink
#98 descrease index length by descreasing context length
Browse files Browse the repository at this point in the history
  • Loading branch information
artemk committed Dec 18, 2011
1 parent be398de commit 7798b80
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -12,7 +12,9 @@ def self.up
t.references :taggable, :polymorphic => true
t.references :tagger, :polymorphic => true

t.string :context
# limit is created to prevent mysql error o index lenght for myisam table type.
# http://bit.ly/vgW2Ql
t.string :context, :limit => 128

t.datetime :created_at
end
Expand Down

0 comments on commit 7798b80

Please sign in to comment.