diff options
| author | Andrew White <andrew.white@unboxed.co> | 2017-03-04 17:29:08 +0000 | 
|---|---|---|
| committer | Andrew White <andrew.white@unboxed.co> | 2017-03-04 17:29:08 +0000 | 
| commit | 1fd6bb6eece38a0dae6794dac8bcd3c0e26f0acf (patch) | |
| tree | 7e2c27a3dbd286d4fa1b72d6c98f1066762b14c8 /activerecord/lib/active_record | |
| parent | d7075e0b1bcfdfef09f1bf7ca6d89384b8c46c86 (diff) | |
| download | rails-1fd6bb6eece38a0dae6794dac8bcd3c0e26f0acf.tar.gz rails-1fd6bb6eece38a0dae6794dac8bcd3c0e26f0acf.tar.bz2 rails-1fd6bb6eece38a0dae6794dac8bcd3c0e26f0acf.zip | |
Don't hide method that's been documented API since Rails 2.1
Diffstat (limited to 'activerecord/lib/active_record')
| -rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb index 1df586f672..c9dd915e98 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb @@ -1022,13 +1022,13 @@ module ActiveRecord          { primary_key: true }        end -      def assume_migrated_upto_version(version, paths) # :nodoc: -        paths = Array(paths) +      def assume_migrated_upto_version(version, migrations_paths) +        migrations_paths = Array(migrations_paths)          version = version.to_i          sm_table = quote_table_name(ActiveRecord::Migrator.schema_migrations_table_name)          migrated = select_values("SELECT version FROM #{sm_table}").map(&:to_i) -        versions = ActiveRecord::Migrator.migration_files(paths).map do |file| +        versions = ActiveRecord::Migrator.migration_files(migrations_paths).map do |file|            ActiveRecord::Migrator.parse_migration_filename(file).first.to_i          end | 
