mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove deprecated ActiveRecord::ConnectionAdapters::SQLite3Adapter#valid_alter_table_type?
This commit is contained in:
parent
91ddb30083
commit
45b4d5f81f
3 changed files with 4 additions and 9 deletions
|
@ -1,3 +1,7 @@
|
|||
* Remove deprecated `ActiveRecord::ConnectionAdapters::SQLite3Adapter#valid_alter_table_type?`.
|
||||
|
||||
*Rafael Mendonça França*
|
||||
|
||||
* Do not allow passing the column name to `sum` when a block is passed.
|
||||
|
||||
*Rafael Mendonça França*
|
||||
|
|
|
@ -307,11 +307,6 @@ module ActiveRecord
|
|||
rename_table_indexes(table_name, new_name)
|
||||
end
|
||||
|
||||
def valid_alter_table_type?(type, options = {})
|
||||
!invalid_alter_table_type?(type, options)
|
||||
end
|
||||
deprecate :valid_alter_table_type?
|
||||
|
||||
def add_column(table_name, column_name, type, options = {}) #:nodoc:
|
||||
if invalid_alter_table_type?(type, options)
|
||||
alter_table(table_name) do |definition|
|
||||
|
|
|
@ -536,10 +536,6 @@ module ActiveRecord
|
|||
end
|
||||
end
|
||||
|
||||
def test_deprecate_valid_alter_table_type
|
||||
assert_deprecated { @conn.valid_alter_table_type?(:string) }
|
||||
end
|
||||
|
||||
def test_db_is_not_readonly_when_readonly_option_is_false
|
||||
conn = Base.sqlite3_connection database: ":memory:",
|
||||
adapter: "sqlite3",
|
||||
|
|
Loading…
Reference in a new issue