Module: PgCinnamon

Defined in:
lib/pg_cinnamon.rb,
lib/pg_cinnamon/railtie.rb,
lib/pg_cinnamon/version.rb,
lib/pg_cinnamon/schema_dumper.rb,
lib/pg_cinnamon/table_definition.rb

Defined Under Namespace

Modules: SchemaDumper, TableDefinition Classes: Railtie

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.loadObject



7
8
9
10
11
# File 'lib/pg_cinnamon.rb', line 7

def self.load
  ActiveRecord::ConnectionAdapters::PostgreSQL::TableDefinition.include PgCinnamon::TableDefinition
  ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::NATIVE_DATABASE_TYPES.merge!(tsquery: { name: "tsquery" })
  ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.prepend PgCinnamon::SchemaDumper
end