Class: HuntersMove

Inherits:
ApplicationRecord show all
Defined in:
app/models/hunters_move.rb

Overview

A many-to-many association record for hunters to moves

Schema Information

Table name: hunters_moves

Indexes

index_hunters_moves_on_haven_id   (haven_id) WHERE (haven_id IS NOT NULL)
index_hunters_moves_on_hunter_id  (hunter_id)
index_hunters_moves_on_move_id    (move_id)

Foreign Keys

fk_rails_...  (haven_id => havens.id)
fk_rails_...  (hunter_id => hunters.id)
fk_rails_...  (move_id => moves.id)

Instance Attribute Summary collapse

Method Summary

Methods inherited from ApplicationRecord

policy_class

Instance Attribute Details

#advancedBoolean

Returns:

  • (Boolean)

31
32
33
34
35
# File 'app/models/hunters_move.rb', line 31

class HuntersMove < ApplicationRecord
  belongs_to :hunter
  belongs_to :move
  belongs_to :haven, optional: true
end

#haven_idObject

Returns [].

Returns:


31
32
33
34
35
# File 'app/models/hunters_move.rb', line 31

class HuntersMove < ApplicationRecord
  belongs_to :hunter
  belongs_to :move
  belongs_to :haven, optional: true
end

#hunter_idObject

Returns [].

Returns:


31
32
33
34
35
# File 'app/models/hunters_move.rb', line 31

class HuntersMove < ApplicationRecord
  belongs_to :hunter
  belongs_to :move
  belongs_to :haven, optional: true
end

#idObject

Returns [].

Returns:


31
32
33
34
35
# File 'app/models/hunters_move.rb', line 31

class HuntersMove < ApplicationRecord
  belongs_to :hunter
  belongs_to :move
  belongs_to :haven, optional: true
end

#move_idObject

Returns [].

Returns:


31
32
33
34
35
# File 'app/models/hunters_move.rb', line 31

class HuntersMove < ApplicationRecord
  belongs_to :hunter
  belongs_to :move
  belongs_to :haven, optional: true
end