Skip to content

Commit

Permalink
Fix Style/NumericLiterals offense
Browse files Browse the repository at this point in the history
  • Loading branch information
tagliala committed Oct 19, 2023
1 parent 49e16ea commit f5b3874
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 0 additions & 5 deletions .rubocop_todo.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion lib/chrono_model/adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,15 @@ class Adapter < ActiveRecord::ConnectionAdapters::PostgreSQLAdapter
# The schema holding historical data
HISTORY_SCHEMA = 'history'

# Minimum supported PostgreSQL version (in PG_VERSION_NUM format)
MIN_PG_VERSION_NUM = 90300 # rubocop:disable Style/NumericLiterals

# Returns true whether the connection adapter supports our
# implementation of temporal tables. Currently, Chronomodel
# is supported starting with PostgreSQL 9.3.
#
def chrono_supported?
postgresql_version >= 90300
postgresql_version >= MIN_PG_VERSION_NUM
end

def chrono_setup!
Expand Down

0 comments on commit f5b3874

Please sign in to comment.