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:
parent
02b5453331
commit
f2099361da
5 changed files with 4 additions and 19 deletions
|
@ -1,3 +1,7 @@
|
|||
* Remove deprecated `#migration_keys`.
|
||||
|
||||
*Ryuta Kamizono*
|
||||
|
||||
* Automatically guess the inverse associations for STI.
|
||||
|
||||
*Yuichiro Kaneko*
|
||||
|
|
|
@ -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 = {}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue