Class: ActiveRecord::ConnectionAdapters::CheckConstraintDefinition

Inherits:
Struct
  • Object
show all
Defined in:
lib/active_record/connection_adapters/abstract/schema_definitions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#expressionObject

Returns the value of attribute expression

Returns:

  • (Object)

    the current value of expression



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

def expression
  @expression
end

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



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

def options
  @options
end

#table_nameObject

Returns the value of attribute table_name

Returns:

  • (Object)

    the current value of table_name



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

def table_name
  @table_name
end

Instance Method Details

#export_name_on_schema_dump?Boolean

Returns:

  • (Boolean)


144
145
146
# File '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

#nameObject



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

def name
  options[:name]
end

#validate?Boolean Also known as: validated?

Returns:

  • (Boolean)


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

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