123456789_123456789_123456789_123456789_123456789_

Class: ActiveRecord::ConnectionAdapters::CheckConstraintDefinition

Relationships & Source Files
Inherits: Struct
  • ::Object
Defined in: activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb

Instance Attribute Summary

Instance Method Summary

Instance Attribute Details

#export_name_on_schema_dump?Boolean (readonly)

[ GitHub ]

  
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 144

def export_name_on_schema_dump?
  !ActiveRecord::SchemaDumper.chk_ignore_pattern.match?(name) if name
end

#expression (rw)

[ GitHub ]

  
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 134

CheckConstraintDefinition = Struct.new(:table_name, :expression, :options)

#options (rw)

[ GitHub ]

  
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 134

CheckConstraintDefinition = Struct.new(:table_name, :expression, :options)

#table_name (rw)

[ GitHub ]

  
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 134

CheckConstraintDefinition = Struct.new(:table_name, :expression, :options)

#validate?Boolean (readonly) Also known as: #validated?

[ GitHub ]

  
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 139

def validate?
  options.fetch(:validate, true)
end

#validated? (readonly)

Alias for #validate?.

[ GitHub ]

  
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 142

alias validated? validate?

Instance Method Details

#name

[ GitHub ]

  
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 135

def name
  options[:name]
end