HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/gems/default/doc/activerecord-6.1.4.1/ri/ActiveRecord/Migration/revert-i.ri
U:RDoc::AnyMethod[iI"revert:ETI"#ActiveRecord::Migration#revert;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[I"=Reverses the migration commands for the given block and ;TI"the given migrations.;To:RDoc::Markup::BlankLineo;
;	[I"<The following migration will remove the table 'horses' ;TI"Band create the table 'apples' on the way up, and the reverse ;TI"on the way down.;T@o:RDoc::Markup::Verbatim;	[I"9class FixTLMigration < ActiveRecord::Migration[6.0]
;TI"  def change
;TI"    revert do
;TI"(      create_table(:horses) do |t|
;TI"        t.text :content
;TI"#        t.datetime :remind_at
;TI"      end
;TI"
    end
;TI"&    create_table(:apples) do |t|
;TI"      t.string :variety
;TI"
    end
;TI"  end
;TI"	end
;T:@format0o;
;	[I"DOr equivalently, if +TenderloveMigration+ is defined as in the ;TI"!documentation for Migration:;T@o;;	[I"<require_relative "20121212123456_tenderlove_migration"
;TI"
;TI";class FixupTLMigration < ActiveRecord::Migration[6.0]
;TI"  def change
;TI"$    revert TenderloveMigration
;TI"
;TI"&    create_table(:apples) do |t|
;TI"      t.string :variety
;TI"
    end
;TI"  end
;TI"	end
;T;
0o;
;	[I" This command can be nested.;T:
@fileI"#lib/active_record/migration.rb;T:0@omit_headings_from_table_of_contents_below00I";T[I"(*migration_classes);T@8FI"Migration;TcRDoc::NormalClass00