From d481e0506095db44d05072dc0d527e69e3252222 Mon Sep 17 00:00:00 2001 From: kennyj Date: Thu, 28 Mar 2013 03:53:49 +0900 Subject: [PATCH] Add deprecation message on Firebird / Sqlserver / Oracle database tasks. --- activerecord/lib/active_record/tasks/firebird_database_tasks.rb | 1 + activerecord/lib/active_record/tasks/oracle_database_tasks.rb | 1 + activerecord/lib/active_record/tasks/sqlserver_database_tasks.rb | 1 + 3 files changed, 3 insertions(+) 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