diff options
author | Matthew Draper <matthew@trebex.net> | 2015-12-06 06:44:22 +1030 |
---|---|---|
committer | Matthew Draper <matthew@trebex.net> | 2015-12-15 17:18:09 +1030 |
commit | a6d4e5e5320d90dac9e9e7dbfbea6bdc093af10e (patch) | |
tree | 8bc391ef4d3751e459b859bed969a6eec690e64c /railties/test/application/rake | |
parent | dc8d40af5856e40bac7ed9d21198395e6a3fb93c (diff) | |
download | rails-a6d4e5e5320d90dac9e9e7dbfbea6bdc093af10e.tar.gz rails-a6d4e5e5320d90dac9e9e7dbfbea6bdc093af10e.tar.bz2 rails-a6d4e5e5320d90dac9e9e7dbfbea6bdc093af10e.zip |
Internal test migrations use the private 'Current' version
Apart from specific versioning support, our tests should focus on the
behaviour of whatever version they're accompanying, regardless of when
they were written.
Application code should *not* do this.
Diffstat (limited to 'railties/test/application/rake')
-rw-r--r-- | railties/test/application/rake/migrations_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/test/application/rake/migrations_test.rb b/railties/test/application/rake/migrations_test.rb index 6b74707959..580ed269cb 100644 --- a/railties/test/application/rake/migrations_test.rb +++ b/railties/test/application/rake/migrations_test.rb @@ -18,7 +18,7 @@ module ApplicationTests `bin/rails generate model user username:string password:string` app_file "db/migrate/01_a_migration.bukkits.rb", <<-MIGRATION - class AMigration < ActiveRecord::Migration + class AMigration < ActiveRecord::Migration::Current end MIGRATION @@ -158,12 +158,12 @@ module ApplicationTests Dir.chdir(app_path) do app_file "db/migrate/1_one_migration.rb", <<-MIGRATION - class OneMigration < ActiveRecord::Migration + class OneMigration < ActiveRecord::Migration::Current end MIGRATION app_file "db/migrate/02_two_migration.rb", <<-MIGRATION - class TwoMigration < ActiveRecord::Migration + class TwoMigration < ActiveRecord::Migration::Current end MIGRATION |