Hey Bryan

I'm fine with supporting both `uniq` and `unique` in the generator. More so 
because the option is called `unique`.

Cheers,
-- Yves

On Monday, June 15, 2015 at 4:25:29 PM UTC+2, Bryan Ash wrote:
>
> 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.

Reply via email to