diff options
author | kennyj <kennyj@gmail.com> | 2013-03-28 03:53:49 +0900 |
---|---|---|
committer | kennyj <kennyj@gmail.com> | 2013-04-03 00:54:32 +0900 |
commit | d481e0506095db44d05072dc0d527e69e3252222 (patch) | |
tree | 05eac7b3d03c189f270e3d4716ef0687de5660a3 /activerecord | |
parent | 742d0901893fc96ff2951a580110aadd1953aecf (diff) | |
download | rails-d481e0506095db44d05072dc0d527e69e3252222.tar.gz rails-d481e0506095db44d05072dc0d527e69e3252222.tar.bz2 rails-d481e0506095db44d05072dc0d527e69e3252222.zip |
Add deprecation message on Firebird / Sqlserver / Oracle database tasks.
Diffstat (limited to 'activerecord')
3 files changed, 3 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/tasks/firebird_database_tasks.rb b/activerecord/lib/active_record/tasks/firebird_database_tasks.rb index 86bf17f142..98014a38ea 100644 --- a/activerecord/lib/active_record/tasks/firebird_database_tasks.rb +++ b/activerecord/lib/active_record/tasks/firebird_database_tasks.rb @@ -4,6 +4,7 @@ module ActiveRecord delegate :connection, :establish_connection, to: ActiveRecord::Base def initialize(configuration) + ActiveSupport::Deprecation.warn "This database tasks were deprecated, because this tasks should be served by the 3rd party adapter." @configuration = configuration end diff --git a/activerecord/lib/active_record/tasks/oracle_database_tasks.rb b/activerecord/lib/active_record/tasks/oracle_database_tasks.rb index 780fc1fd99..de3aa50e5e 100644 --- a/activerecord/lib/active_record/tasks/oracle_database_tasks.rb +++ b/activerecord/lib/active_record/tasks/oracle_database_tasks.rb @@ -4,6 +4,7 @@ module ActiveRecord delegate :connection, :establish_connection, to: ActiveRecord::Base def initialize(configuration) + ActiveSupport::Deprecation.warn "This database tasks were deprecated, because this tasks should be served by the 3rd party adapter." @configuration = configuration end diff --git a/activerecord/lib/active_record/tasks/sqlserver_database_tasks.rb b/activerecord/lib/active_record/tasks/sqlserver_database_tasks.rb index 011954d136..c718ee03a8 100644 --- a/activerecord/lib/active_record/tasks/sqlserver_database_tasks.rb +++ b/activerecord/lib/active_record/tasks/sqlserver_database_tasks.rb @@ -6,6 +6,7 @@ module ActiveRecord delegate :connection, :establish_connection, to: ActiveRecord::Base def initialize(configuration) + ActiveSupport::Deprecation.warn "This database tasks were deprecated, because this tasks should be served by the 3rd party adapter." @configuration = configuration end |