Skip to content

Commit

Permalink
Added all models to schema check
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed May 24, 2024
1 parent d6be5a1 commit 21059be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/support/active_record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -177,4 +177,6 @@ def update_data
end

# ensure has_encrypted does not cause model schema to load
raise "has_encrypted loading model schema early" if User.send(:schema_loaded?)
if [User, Post, Robot, Comment, Admin, Agent, Person].any? { |v| v.send(:schema_loaded?) }
raise "has_encrypted loading model schema early"
end

0 comments on commit 21059be

Please sign in to comment.