Sha256: 5cb38cb2e618b2a26358fd4dfad6ac28522a095d5886fc0296cfc56dd404a222

Contents?: true

Size: 195 Bytes

Versions: 5

Compression:

Stored size: 195 Bytes

Contents

# + Spec +User+
class User < ActiveRecord::Base
  auto_increment :letter_code, scope: :account_id, initial: 'A', force: true,
                               lock: true

  belongs_to :account
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
auto_increment-1.5.0 spec/models/user.rb
auto_increment-1.4.1 spec/models/user.rb
auto_increment-1.4.0 spec/models/user.rb
auto_increment-1.3.0 spec/models/user.rb
auto_increment-1.2.0 spec/models/user.rb