Sha256: 2a6bb1dc0fbb473b9373b972367c76598c3e2cec21a074043974a2698f2aad41

Contents?: true

Size: 248 Bytes

Versions: 53

Compression:

Stored size: 248 Bytes

Contents

class User < ActiveRecord::Base
  has_many :trees_owned, class_name: 'Tree', inverse_of: :owner
  has_many :trees_cut, class_name: 'Tree', inverse_of: :cutter
  has_many :addresses, as: :addressable

  enum title: [ :king, :villager, :outlaw ]
end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
forest_liana-9.7.0 spec/dummy/app/models/user.rb
forest_liana-9.6.4 spec/dummy/app/models/user.rb
forest_liana-9.6.3 spec/dummy/app/models/user.rb
forest_liana-9.6.0 spec/dummy/app/models/user.rb
forest_liana-9.5.7 spec/dummy/app/models/user.rb
forest_liana-9.5.6 spec/dummy/app/models/user.rb
forest_liana-9.5.5 spec/dummy/app/models/user.rb
forest_liana-9.5.4 spec/dummy/app/models/user.rb
forest_liana-9.5.3 spec/dummy/app/models/user.rb
forest_liana-9.5.2 spec/dummy/app/models/user.rb
forest_liana-9.5.1 spec/dummy/app/models/user.rb
forest_liana-9.5.0 spec/dummy/app/models/user.rb
forest_liana-9.4.3 spec/dummy/app/models/user.rb
forest_liana-9.4.2 spec/dummy/app/models/user.rb
forest_liana-9.4.1 spec/dummy/app/models/user.rb
forest_liana-9.4.0 spec/dummy/app/models/user.rb
forest_liana-8.3.3 spec/dummy/app/models/user.rb
forest_liana-9.3.16 spec/dummy/app/models/user.rb
forest_liana-9.3.15 spec/dummy/app/models/user.rb
forest_liana-9.3.14 spec/dummy/app/models/user.rb