abstract class Avram::Model
- Avram::Model
- Reference
- Object
Included Modules
Defined in:
avram/model.crClass Method Summary
Macro Summary
- association(assoc_name, type, relationship_type, foreign_key = nil, through = nil, base_query_class = nil)
- column(type_declaration, autogenerated = false, serialize is_serialized = false, allow_blank = false, converter = nil)
- default_columns
- primary_key(type_declaration)
- setup(step, *args, **named_args)
- setup_association_queries(associations, *args, **named_args)
- setup_column_info_methods(columns, *args, **named_args)
- setup_getters(columns, *args, **named_args)
- setup_initialize(columns, *args, **named_args)
- setup_table_schema_enforcer_validations(type, *args, **named_args)
- setup_view_schema_enforcer_validations(type, *args, **named_args)
- skip_default_columns
- table(table_name = nil)
- timestamps
- validate_columns(model_type)
- validate_primary_key
- view(view_name = nil, materialized = false)
Instance Method Summary
-
#delete
Refer to
PrimaryKeyMethods#delete
- #model_name : String
-
#reload : self
Refer to
PrimaryKeyMethods#reload
-
#reload(&) : self
Refer to
PrimaryKeyMethods#reload
-
#to_param : String
Refer to
PrimaryKeyMethods#to_param
Class methods inherited from module Avram::SchemaEnforcer
ensure_correct_column_mappings!
ensure_correct_column_mappings!
Macros inherited from module Avram::SchemaEnforcer
setup(type, *args, **named_args)
setup,
skip_schema_enforcer
skip_schema_enforcer
Macros inherited from module Avram::Polymorphic
polymorphic(polymorphic_name, associations, optional = false)
polymorphic
Macros inherited from module Avram::Associations::BelongsTo
belongs_to(type_declaration, foreign_key = nil)
belongs_to
Macros inherited from module Avram::Associations::HasOne
has_one(type_declaration, foreign_key = nil)
has_one
Macros inherited from module Avram::Associations::HasMany
has_many(type_declaration, through = nil, foreign_key = nil, base_query_class = nil)
has_many
Instance methods inherited from class Object
blank_for_validates_required? : Bool
blank_for_validates_required?
Class Method Detail
Macro Detail
macro association(assoc_name, type, relationship_type, foreign_key = nil, through = nil, base_query_class = nil)
#
macro column(type_declaration, autogenerated = false, serialize is_serialized = false, allow_blank = false, converter = nil)
#