Class: ActiveRecord::DataIntegrity::Accordance::PrimaryKey
- Defined in:
- lib/active_record/data_integrity/cop/accordance/primary_key.rb
Overview
Checks the primary key integer has 8 bytes length
Instance Attribute Summary
Attributes inherited from Cop
Instance Method Summary collapse
Methods inherited from Cop
cop_name, #initialize, #log, #progress
Constructor Details
This class inherits a constructor from ActiveRecord::DataIntegrity::Cop
Instance Method Details
#call ⇒ Object
10 11 12 13 14 |
# File 'lib/active_record/data_integrity/cop/accordance/primary_key.rb', line 10 def call log('has short integer primary key') unless valid? progress(valid?, 'P') valid? end |