aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/schema_cache.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/schema_cache.rb')
-rw-r--r--activerecord/lib/active_record/connection_adapters/schema_cache.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/schema_cache.rb b/activerecord/lib/active_record/connection_adapters/schema_cache.rb
index eee142378c..8219f132c3 100644
--- a/activerecord/lib/active_record/connection_adapters/schema_cache.rb
+++ b/activerecord/lib/active_record/connection_adapters/schema_cache.rb
@@ -33,8 +33,7 @@ module ActiveRecord
@data_sources[name] = connection.data_source_exists?(name)
end
alias table_exists? data_source_exists?
- deprecate :table_exists? => "use #data_source_exists? instead"
-
+ deprecate table_exists?: "use #data_source_exists? instead"
# Add internal cache for table with +table_name+.
def add(table_name)
@@ -49,7 +48,7 @@ module ActiveRecord
@data_sources[name]
end
alias tables data_sources
- deprecate :tables => "use #data_sources instead"
+ deprecate tables: "use #data_sources instead"
# Get the columns for a table
def columns(table_name)
@@ -85,7 +84,7 @@ module ActiveRecord
@data_sources.delete name
end
alias clear_table_cache! clear_data_source_cache!
- deprecate :clear_table_cache! => "use #clear_data_source_cache! instead"
+ deprecate clear_table_cache!: "use #clear_data_source_cache! instead"
def marshal_dump
# if we get current version during initialization, it happens stack over flow.