diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2017-08-23 17:47:04 -0400 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2017-10-23 12:50:46 -0400 |
commit | c9660b5777707658c414b430753029cd9bc39934 (patch) | |
tree | c5998e628c05c8b0df55b4c0b2256531727a19e1 | |
parent | 63cf15877bae859ff7b4ebaf05186f3ca79c1863 (diff) | |
download | rails-c9660b5777707658c414b430753029cd9bc39934.tar.gz rails-c9660b5777707658c414b430753029cd9bc39934.tar.bz2 rails-c9660b5777707658c414b430753029cd9bc39934.zip |
Remove deprecated methods `initialize_schema_migrations_table` and `initialize_internal_metadata_table`
-rw-r--r-- | activerecord/CHANGELOG.md | 4 | ||||
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb | 10 | ||||
-rw-r--r-- | activerecord/test/cases/migration_test.rb | 5 |
3 files changed, 4 insertions, 15 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index 9a58ebd100..2d3897fa92 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,3 +1,7 @@ +* Remove deprecated methods `initialize_schema_migrations_table` and `initialize_internal_metadata_table`. + + *Rafael Mendonça França* + * Raises when calling `lock!` in a dirty record. *Rafael Mendonça França* 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 4169883443..1970cf5de0 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb @@ -1015,16 +1015,6 @@ module ActiveRecord insert_versions_sql(versions) if versions.any? end - def initialize_schema_migrations_table # :nodoc: - ActiveRecord::SchemaMigration.create_table - end - deprecate :initialize_schema_migrations_table - - def initialize_internal_metadata_table # :nodoc: - ActiveRecord::InternalMetadata.create_table - end - deprecate :initialize_internal_metadata_table - def internal_string_options_for_primary_key # :nodoc: { primary_key: true } end diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb index 07afa89779..3ea4b0782b 100644 --- a/activerecord/test/cases/migration_test.rb +++ b/activerecord/test/cases/migration_test.rb @@ -1107,11 +1107,6 @@ class CopyMigrationsTest < ActiveRecord::TestCase assert_raise(ArgumentError) { ActiveRecord::Migration[1.0] } end - def test_deprecate_initialize_internal_tables - assert_deprecated { ActiveRecord::Base.connection.initialize_schema_migrations_table } - assert_deprecated { ActiveRecord::Base.connection.initialize_internal_metadata_table } - end - def test_deprecate_supports_migrations assert_deprecated { ActiveRecord::Base.connection.supports_migrations? } end |