Module: ActiveRecord::Dbt::Column::DataTestable::AcceptedValuesDataTestable
- Extended by:
- RequiredMethods
- Included in:
- ActiveRecord::Dbt::Column::DataTest
- Defined in:
- lib/active_record/dbt/column/data_testable/accepted_values_data_testable.rb
Instance Method Summary collapse
Methods included from RequiredMethods
Instance Method Details
#accepted_values_test ⇒ Object
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/active_record/dbt/column/data_testable/accepted_values_data_testable.rb', line 15 def accepted_values_test return nil unless column_type == :boolean || enum_values.present? { 'accepted_values' => { 'values' => values, 'quote' => quote? } } end |