uniquify icon indicating copy to clipboard operation
uniquify copied to clipboard

Generate a unique, random token for Active Record.

Results 8 uniquify issues
Sort by recently updated
recently updated
newest added

Please update README to add this. https://github.com/rails/rails/blob/master/activerecord/lib/active_record/secure_token.rb

I hacked the plugin so it works with Rails 3.

re-write autogenerated identifiers in such a way that ensure_unique can be applied to records outside of the create cycle. this is useful for adding new, uniquified columns to an existing...

I had a User model and Email attribute. So I tried to generate unique token like below. class User < ActiveRecord::Base uniquify :token do email.split('@').first.downcase

i get the following warning message when using uniquify with rubygems 1.4.2 on a rails 2.3.12 project: uniquify at /Users/fharbec/.rvm/gems/ruby-1.8.7-p334/bundler/gems/uniquify-0711699cc29c did not have a valid gemspec. This prevents bundler from...

It would be nice if this could take a scope to limit the uniqueness of the generated token