it looks like mysql (the one i got on my rhel 6.4) complained about it, so I think its better to have simply:
```ruby
options = {:unique => true }
options[:length] = 254 if ActiveRecord::Base.connection.instance_values["config"][:adapter].grep(/mysql/) # note it can be mysql or mysql2
add_index(:fact_names, :name, :options)