1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove deprecated #migration_keys

This commit is contained in:
Ryuta Kamizono 2017-08-20 23:31:34 +09:00
parent 02b5453331
commit f2099361da
5 changed files with 4 additions and 19 deletions

View file

@ -1,3 +1,7 @@
* Remove deprecated `#migration_keys`.
*Ryuta Kamizono*
* Automatically guess the inverse associations for STI.
*Yuichiro Kaneko*

View file

@ -22,12 +22,6 @@ module ActiveRecord
spec
end
# Lists the valid migration options
def migration_keys # :nodoc:
column_options_keys
end
deprecate :migration_keys
private
def prepare_column_options(column)
spec = {}

View file

@ -4,10 +4,6 @@ module ActiveRecord
module ConnectionAdapters
module MySQL
module ColumnDumper # :nodoc:
def migration_keys
super + [:unsigned]
end
private
def prepare_column_options(column)
spec = super

View file

@ -4,11 +4,6 @@ module ActiveRecord
module ConnectionAdapters
module PostgreSQL
module ColumnDumper # :nodoc:
# Adds +:array+ as a valid migration key
def migration_keys
super + [:array]
end
private
def prepare_column_options(column)
spec = super

View file

@ -1112,10 +1112,6 @@ class CopyMigrationsTest < ActiveRecord::TestCase
assert_deprecated { ActiveRecord::Base.connection.initialize_internal_metadata_table }
end
def test_deprecate_migration_keys
assert_deprecated { ActiveRecord::Base.connection.migration_keys }
end
def test_deprecate_supports_migrations
assert_deprecated { ActiveRecord::Base.connection.supports_migrations? }
end