HEX
Server: Apache
System: Windows NT MAGNETO-ARM 10.0 build 22000 (Windows 10) AMD64
User: Michel (0)
PHP: 7.4.7
Disabled: NONE
Upload Files
File: C:/Ruby27-x64/lib/ruby/gems/2.7.0/doc/activerecord-7.0.4.2/ri/ActiveRecord/Migration/up_only-i.ri
U:RDoc::AnyMethod[iI"up_only:ETI"$ActiveRecord::Migration#up_only;TF:publico:RDoc::Markup::Document:@parts[
o:RDoc::Markup::Paragraph;	[I"EUsed to specify an operation that is only run when migrating up ;TI"D(for example, populating a new column with its initial values).;To:RDoc::Markup::BlankLineo;
;	[I"HIn the following example, the new column +published+ will be given ;TI"/the value +true+ for all existing records.;T@o:RDoc::Markup::Verbatim;	[
I">class AddPublishedToPosts < ActiveRecord::Migration[7.0]
;TI"  def change
;TI"A    add_column :posts, :published, :boolean, default: false
;TI"    up_only do
;TI"9      execute "update posts set published = 'true'"
;TI"
    end
;TI"  end
;TI"end;T:@format0:
@fileI"#lib/active_record/migration.rb;T:0@omit_headings_from_table_of_contents_below000[I"
(&block);T@FI"Migration;TcRDoc::NormalClass00