method

down

Importance_0
v5.2.3 - Show latest stable - 0 notes - Class: MigrationContext
down(target_version = nil) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/migration.rb, line 1039
    def down(target_version = nil)
      selected_migrations = if block_given?
        migrations.select { |m| yield m }
      else
        migrations
      end

      Migrator.new(:down, selected_migrations, target_version).migrate
    end
Register or log in to add new notes.