Class: BiologicalAssociationsBiologicalAssociationsGraph

Inherits:
ApplicationRecord
  • Object
show all
Includes:
Housekeeping, Shared::IsData
Defined in:
app/models/biological_associations_biological_associations_graph.rb

Overview

A biological associations biological associations graph links BiologicalAssociations to their Graphs.

Instance Attribute Summary collapse

Method Summary

Methods included from Shared::IsData

#errors_excepting, #full_error_messages_excepting, #identical, #is_community?, #is_destroyable?, #is_editable?, #is_in_use?, #is_in_users_projects?, #metamorphosize, #similar

Methods included from Housekeeping

#has_polymorphic_relationship?

Methods inherited from ApplicationRecord

transaction_with_retry

Instance Attribute Details

#biological_association_idInteger

TODO:

Returns:

  • (Integer)


15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'app/models/biological_associations_biological_associations_graph.rb', line 15

class BiologicalAssociationsBiologicalAssociationsGraph < ApplicationRecord
  include Housekeeping
  include Shared::IsData

  belongs_to :biological_associations_graph, inverse_of: :biological_associations_biological_associations_graphs

  belongs_to :biological_association, inverse_of: :biological_associations_biological_associations_graphs

  validates :biological_associations_graph, presence: true
  validates :biological_association, presence: true

  validates_uniqueness_of :biological_association, scope: [ :biological_associations_graph ]

end

#biological_associations_graph_idInteger

TODO:

Returns:

  • (Integer)


15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'app/models/biological_associations_biological_associations_graph.rb', line 15

class BiologicalAssociationsBiologicalAssociationsGraph < ApplicationRecord
  include Housekeeping
  include Shared::IsData

  belongs_to :biological_associations_graph, inverse_of: :biological_associations_biological_associations_graphs

  belongs_to :biological_association, inverse_of: :biological_associations_biological_associations_graphs

  validates :biological_associations_graph, presence: true
  validates :biological_association, presence: true

  validates_uniqueness_of :biological_association, scope: [ :biological_associations_graph ]

end

#project_idInteger

the project ID

Returns:

  • (Integer)


15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'app/models/biological_associations_biological_associations_graph.rb', line 15

class BiologicalAssociationsBiologicalAssociationsGraph < ApplicationRecord
  include Housekeeping
  include Shared::IsData

  belongs_to :biological_associations_graph, inverse_of: :biological_associations_biological_associations_graphs

  belongs_to :biological_association, inverse_of: :biological_associations_biological_associations_graphs

  validates :biological_associations_graph, presence: true
  validates :biological_association, presence: true

  validates_uniqueness_of :biological_association, scope: [ :biological_associations_graph ]

end