dropping support for `schema_info`.

This commit is contained in:
Aaron Patterson 2012-01-10 10:54:00 -08:00
parent 0e64107375
commit f82e244a80
2 changed files with 3 additions and 12 deletions

View File

@ -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.

View File

@ -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