@@ -244,7 +244,7 @@ def migrate!
244244 # we will only alter TTL status if we have a TTL attribute defined. We
245245 # may someday support explicit TTL deletion, but we do not yet do this.
246246 return unless @ttl_attribute
247- return if _ttl_compatibility_check
247+ return if ttl_compatibility_check?
248248
249249 client . update_time_to_live (
250250 table_name : @model_class . table_name ,
@@ -268,7 +268,7 @@ def migrate!
268268 # @return [Boolean] true if remote is compatible, false otherwise.
269269 def compatible?
270270 resp = @client . describe_table ( table_name : @model_class . table_name )
271- _compatible_check ( resp ) && _ttl_compatibility_check
271+ _compatible_check ( resp ) && ttl_compatibility_check?
272272 rescue DynamoDB ::Errors ::ResourceNotFoundException
273273 false
274274 end
@@ -285,14 +285,14 @@ def exact_match?
285285 _keys_equal ( resp ) &&
286286 _ad_equal ( resp ) &&
287287 _gsi_equal ( resp ) &&
288- _ttl_match_check
288+ ttl_match_check?
289289 rescue DynamoDB ::Errors ::ResourceNotFoundException
290290 false
291291 end
292292
293293 private
294294
295- def _ttl_compatibility_check
295+ def ttl_compatibility_check?
296296 if @ttl_attribute
297297 ttl_status = @client . describe_time_to_live (
298298 table_name : @model_class . table_name
@@ -305,7 +305,7 @@ def _ttl_compatibility_check
305305 end
306306 end
307307
308- def _ttl_match_check
308+ def ttl_match_check?
309309 ttl_status = @client . describe_time_to_live (
310310 table_name : @model_class . table_name
311311 )
0 commit comments