class Relation
Ruby on Rails 8.1.2
Since v3.0.20Active Record Relation
Inherits from
Includes
Constants
Attributes
Methods (defined here)
- # ==
- # any?
- # blank?
- # build
- # cache_key
- # cache_key_with_version
- # cache_version
- # create
- # create!
- # create_or_find_by
- # create_or_find_by!
- # delete
- # delete_all
- # delete_by
- # destroy
- # destroy_all
- # destroy_by
- # eager_loading?
- # empty?
- # encode_with
- # explain
- # find_or_create_by
- # find_or_create_by!
- # find_or_initialize_by
- # initialize_copy
- # insert
- # insert!
- # insert_all
- # insert_all!
- # inspect
- # joined_includes_values
- # load
- # load_async
- # load_records
- # many?
- # new
- # none?
- # one?
- # pretty_print
- # readonly?
- # reload
- # reset
- # scheduled?
- # scope_for_create
- # scoping
- # size
- # to_a
- # to_ary
- # to_sql
- # touch_all
- # update_all
- # update_counters
- # upsert
- # upsert_all
- # values
- self. new
Private methods (16)
Show private methods Implementation detail — not part of the public API.
- # already_in_scope?
- # _create
- # _create!
- # current_scope_restoring_block
- # exec_main_query
- # exec_queries
- # global_scope?
- # _increment_attribute
- # instantiate_records
- # limited_count
- # _new
- # references_eager_loaded_tables?
- # _scoping
- # skip_query_cache_if_necessary
- # _substitute_values
- # tables_in_string
Methods (inherited)
From Enumerable
(14)
- # compact_blank
- # exclude?
- # excluding
- # in_order_of
- # including
- # index_by
- # index_with
- # many?
- # maximum
- # minimum
- # pick
- # pluck
- # sole
- # without
From Object
(17)
- # acts_like?
- # blank?
- # deep_dup
- # duplicable?
- # html_safe?
- # in?
- # instance_values
- # instance_variable_names
- # presence
- # presence_in
- # present?
- # to_param
- # to_query
- # try
- # try!
- # with
- # with_options
From ActiveSupport::NumericWithFormat
(2)
- # to_formatted_s
- # to_fs