module ActiveRecord::ConnectionAdapters::PostgreSQL
Constants
Struct.new(:table_name, :expression, :options) do
def name
options[:name]
end
def using
options[:using]
end
def where
options[:where]
end
def deferrable
options[:deferrable]
end
def export_name_on_schema_dump?
!ActiveRecord::SchemaDumper.excl_ignore_pattern.match?(name) if name
end
end
Struct.new(:table_name, :column, :options) do
def name
options[:name]
end
def deferrable
options[:deferrable]
end
def using_index
options[:using_index]
end
def export_name_on_schema_dump?
!ActiveRecord::SchemaDumper.unique_ignore_pattern.match?(name) if name
end
def defined_for?(name: nil, column: nil, **options)
(name.nil? || self.name == name.to_s) &&
(column.nil? || Array(self.column) == Array(column).map(&:to_s)) &&
options.all? { |k, v| self.options[k].to_s == v.to_s }
end
end
Namespace
ActiveRecord::
ConnectionAdapters:: PostgreSQL:: AlterTable ActiveRecord::
ConnectionAdapters:: PostgreSQL:: ColumnMethods ActiveRecord::
ConnectionAdapters:: PostgreSQL:: DatabaseStatements ActiveRecord::
ConnectionAdapters:: PostgreSQL:: Quoting ActiveRecord::
ConnectionAdapters:: PostgreSQL:: SchemaStatements ActiveRecord::
ConnectionAdapters:: PostgreSQL:: Table ActiveRecord::
ConnectionAdapters:: PostgreSQL:: TableDefinition
Definition files
activerecord/
lib/ active_record/ connection_adapters/ postgresql/ column.rb activerecord/
lib/ active_record/ connection_adapters/ postgresql/ database_statements.rb activerecord/
lib/ active_record/ connection_adapters/ postgresql/ oid/ interval.rb activerecord/
lib/ active_record/ connection_adapters/ postgresql/ oid/ money.rb activerecord/
lib/ active_record/ connection_adapters/ postgresql/ oid/ range.rb
8 More Less
activerecord/
lib/ active_record/ connection_adapters/ postgresql/ oid/ timestamp_with_time_zone.rb activerecord/
lib/ active_record/ connection_adapters/ postgresql/ oid/ uuid.rb activerecord/
lib/ active_record/ connection_adapters/ postgresql/ quoting.rb activerecord/
lib/ active_record/ connection_adapters/ postgresql/ referential_integrity.rb activerecord/
lib/ active_record/ connection_adapters/ postgresql/ schema_creation.rb activerecord/
lib/ active_record/ connection_adapters/ postgresql/ schema_definitions.rb activerecord/
lib/ active_record/ connection_adapters/ postgresql/ schema_dumper.rb activerecord/
lib/ active_record/ connection_adapters/ postgresql/ schema_statements.rb