spec/models/user.rb in auto_increment-1.1.1 vs spec/models/user.rb in auto_increment-1.2.0
- old
+ new
@@ -1,5 +1,7 @@
+# + Spec +User+
class User < ActiveRecord::Base
- auto_increment column: :letter_code, scope: :account_id, initial: 'A', force: true
+ auto_increment :letter_code, scope: :account_id, initial: 'A', force: true,
+ lock: true
belongs_to :account
end