From 7fd72fa4b779c812c98cfb748287554ba5090f6b Mon Sep 17 00:00:00 2001 From: Sean Griffin Date: Thu, 31 Mar 2016 15:25:29 -0600 Subject: Revert "Deprecate table names containing dots" This reverts commit 7b82e1c77b48cb351da4e0ed6ea0bac806d4925c. This would have removed the ability to reference a schema when using PG --- activerecord/lib/active_record/model_schema.rb | 7 ------- 1 file changed, 7 deletions(-) (limited to 'activerecord/lib/active_record/model_schema.rb') diff --git a/activerecord/lib/active_record/model_schema.rb b/activerecord/lib/active_record/model_schema.rb index 4c836378e0..52eab952e1 100644 --- a/activerecord/lib/active_record/model_schema.rb +++ b/activerecord/lib/active_record/model_schema.rb @@ -144,13 +144,6 @@ module ActiveRecord def table_name=(value) value = value && value.to_s - if value && value.include?(".") - # When this deprecation warning is removed, revert commit 04ac5655be91f49cd4dfe2838df96213502fb274 - ActiveSupport::Deprecation.warn( - 'Support for table names containing "." is deprecated and will be removed in Rails 5.1.' - ) - end - if defined?(@table_name) return if value == @table_name reset_column_information if connected? -- cgit v1.2.3