mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
dropping support for schema_info
.
This commit is contained in:
parent
0e64107375
commit
f82e244a80
2 changed files with 3 additions and 12 deletions
|
@ -1,5 +1,8 @@
|
|||
## Rails 4.0.0 (unreleased) ##
|
||||
|
||||
* Support for the `schema_info` table has been dropped. Please
|
||||
switch to `schema_migrations`.
|
||||
|
||||
* Connections *must* be closed at the end of a thread. If not, your
|
||||
connection pool can fill and an exception will be raised.
|
||||
|
||||
|
|
|
@ -419,18 +419,6 @@ module ActiveRecord
|
|||
end
|
||||
add_index sm_table, :version, :unique => true,
|
||||
:name => "#{Base.table_name_prefix}unique_schema_migrations#{Base.table_name_suffix}"
|
||||
|
||||
# Backwards-compatibility: if we find schema_info, assume we've
|
||||
# migrated up to that point:
|
||||
si_table = Base.table_name_prefix + 'schema_info' + Base.table_name_suffix
|
||||
|
||||
if table_exists?(si_table)
|
||||
ActiveRecord::Deprecation.warn "Usage of the schema table `#{si_table}` is deprecated. Please switch to using `schema_migrations` table"
|
||||
|
||||
old_version = select_value("SELECT version FROM #{quote_table_name(si_table)}").to_i
|
||||
assume_migrated_upto_version(old_version)
|
||||
drop_table(si_table)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue