APIdock
/
Ruby on Rails
/
Browse
About
method
build
v6.0.0
-
Show latest stable
- Class:
ActiveRecord
::
Relation
build
(attributes = nil, &block)
public
Alias for
ActiveRecord::Relation#new
Related methods
Instance methods
==
_exec_scope
alias_tracker
any?
arel_attribute
bind_attribute
blank?
build
cache_key
cache_version
create
create!
create_or_find_by
create_or_find_by!
delete_all
delete_by
destroy_all
destroy_by
eager_loading?
empty?
empty_scope?
encode_with
explain
find_or_create_by
find_or_create_by!
find_or_initialize_by
first_or_create
first_or_create!
first_or_initialize
has_limit_or_offset?
initialize_copy
inspect
joined_includes_values
load
many?
new
none?
one?
preload_associations
pretty_print
records
reload
reset
scope_for_create
scoping
size
to_a
to_ary
to_sql
touch_all
update
update_all
update_counters
values
where_values_hash
Class methods
new
Protected methods
load_records
null_relation?
Private methods
_deprecated_scope_block
_deprecated_spawn
_increment_attribute
_scoping
_substitute_values
already_in_scope?
build_preloader
compute_cache_key
compute_cache_version
exec_queries
references_eager_loaded_tables?
skip_query_cache_if_necessary
tables_in_string