File: //usr/local/rvm/gems/ruby-3.0.2/doc/activerecord-6.1.4.1/ri/ActiveRecord/Core/new-c.ri
U:RDoc::AnyMethod[iI"new:ETI"ActiveRecord::Core::new;TT:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [ I"fNew objects can be instantiated as either empty (pass no construction parameter) or pre-set with ;TI"kattributes but not yet saved (pass a hash with key names matching the associated table column names). ;TI"kIn both instances, valid attribute keys are determined by the column names of the associated table -- ;TI"Khence you can't have attributes that aren't part of the table columns.;To:RDoc::Markup::BlankLine S:RDoc::Markup::Heading:
leveli : textI"
Example:;To:RDoc::Markup::Verbatim; [I"(# Instantiates a single new object
;TI""User.new(first_name: 'Jamie');T:@format0:
@fileI"lib/active_record/core.rb;T:0@omit_headings_from_table_of_contents_below00I" self;T[ I"(attributes = nil);T@FI" Core;TcRDoc::NormalModule00