Skip to content

Commit 24f2502

Browse files
jorgemanrubiahahmed
andcommitted
Remove table_exists? check that became unnecessary after rails#43009
Co-authored-by: Haroon Ahmed <[email protected]>
1 parent 6ec669b commit 24f2502

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/lib/active_record/encryption/encryptable_record.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def add_length_validation_for_encrypted_columns
133133
end
134134

135135
def validate_column_size(attribute_name)
136-
if table_exists? && limit = columns_hash[attribute_name.to_s]&.limit
136+
if limit = columns_hash[attribute_name.to_s]&.limit
137137
validates_length_of attribute_name, maximum: limit
138138
end
139139
end

0 commit comments

Comments
 (0)