From e6b4cae00e6784a27d8cb1fde55c058cfe9c75e7 Mon Sep 17 00:00:00 2001 From: Lawrence Chou Date: Sat, 20 Jun 2020 10:31:43 +0800 Subject: [PATCH] Remove depracated tld_length config option: tld_length was removed in https://github.com/influitive/apartment/pull/309 , this configuration option doesn't have any effect now. --- lib/apartment.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/apartment.rb b/lib/apartment.rb index 854a0250..3f9cfeea 100644 --- a/lib/apartment.rb +++ b/lib/apartment.rb @@ -25,7 +25,7 @@ class << self WRITER_METHODS = %i[tenant_names database_schema_file excluded_models default_schema persistent_schemas connection_class - tld_length db_migrate_tenants seed_data_file + db_migrate_tenants seed_data_file parallel_migration_threads pg_excluded_names].freeze attr_accessor(*ACCESSOR_METHODS) @@ -54,6 +54,10 @@ def tenants_with_config extract_tenant_config end + def tld_length=(_) + Apartment::Deprecation.warn('`config.tld_length` have no effect because it was removed in https://github.com/influitive/apartment/pull/309') + end + def db_config_for(tenant) (tenants_with_config[tenant] || connection_config) end