Skip to content

Commit 36a3c68

Browse files
committed
Merge pull request #49551 from haines/fix-internal-metadata-disabled
Check if internal metadata is enabled in `create_table_and_set_flags`method
1 parent a43aa74 commit 36a3c68

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

activerecord/lib/active_record/internal_metadata.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ def count
6464
end
6565

6666
def create_table_and_set_flags(environment, schema_sha1 = nil)
67+
return unless enabled?
68+
6769
create_table
6870
update_or_create_entry(:environment, environment)
6971
update_or_create_entry(:schema_sha1, schema_sha1) if schema_sha1

0 commit comments

Comments
 (0)