Class: BiologicalAssociationsBiologicalAssociationsGraph
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- BiologicalAssociationsBiologicalAssociationsGraph
- 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
- #biological_association_id ⇒ Integer
- #biological_associations_graph_id ⇒ Integer
-
#project_id ⇒ Integer
the project ID.
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
Instance Attribute Details
#biological_association_id ⇒ Integer
TODO:
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_id ⇒ Integer
TODO:
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_id ⇒ Integer
the project ID
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 |