Permalink
Browse files

Remove deprecated methods `initialize_schema_migrations_table` and `i…

…nitialize_internal_metadata_table`
  • Loading branch information...
rafaelfranca committed Aug 23, 2017
1 parent 63cf158 commit c9660b5777707658c414b430753029cd9bc39934
@@ -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*
@@ -1015,16 +1015,6 @@ def dump_schema_information #:nodoc:
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
@@ -1107,11 +1107,6 @@ def test_unknown_migration_version_should_raise_an_argument_error
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

0 comments on commit c9660b5

Please sign in to comment.