The generator for unique indices seems inconsistent to me.
rails g migration add_unique_index_to_users name:*uniq*
produces:
add_index :users, :name, *unique*: true
This is more intuitive to me:
rails g migration add_unique_index_to_users name:*unique*
The generator could easily support both 'uniq' and 'unique' options, and
I'd be happy to add the feature if it is desirable.
Thanks,
Bryan
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.