Namespace
- CLASS ActiveRecord::InvertibleMigrationTest::InvertibleMigration
- CLASS ActiveRecord::InvertibleMigrationTest::LegacyMigration
- CLASS ActiveRecord::InvertibleMigrationTest::NonInvertibleMigration
- CLASS ActiveRecord::InvertibleMigrationTest::SilentMigration
Methods
- T
Instance Public methods
teardown()
Link
test_down()
Link
test_legacy_down()
Link
test_legacy_up()
Link
test_migrate_down()
Link
test_migrate_down_with_table_name_prefix()
Link
# File activerecord/test/cases/invertible_migration_test.rb, line 92 def test_migrate_down_with_table_name_prefix ActiveRecord::Base.table_name_prefix = 'p_' ActiveRecord::Base.table_name_suffix = '_s' migration = InvertibleMigration.new migration.migrate(:up) assert_nothing_raised { migration.migrate(:down) } assert !ActiveRecord::Base.connection.table_exists?("p_horses_s"), "p_horses_s should not exist" ensure ActiveRecord::Base.table_name_prefix = ActiveRecord::Base.table_name_suffix = '' end
test_migrate_up()
Link
test_no_reverse()
Link