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::BlankLine o;
; [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"