Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Oct 28, 2020. It is now read-only.

Commit 8bfc828

Browse files
author
v.promzelev
committed
skip abstract models
1 parent a422e4e commit 8bfc828

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎lib/activerecord/overflow_signalizer.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def initialize(logger: nil, models: nil, days_count: 60, signalizer: nil)
2929
def analyse!
3030
@models.group_by(&:table_name).each do |table, models|
3131
model = models.first
32-
next if model.last.nil?
32+
next if model.abstract_class? || model.last.nil?
3333
pk = model.columns.select { |c| c.name == model.primary_key }.first
3434
max = MAX_VALUE.fetch(pk.sql_type) { |type| raise UnsupportedType, type }
3535
if overflow_soon?(max, model)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /