Module: Postgresql::Check

Extended by:
ActiveSupport::Autoload
Defined in:
lib/postgresql/check.rb,
lib/postgresql/check/table.rb,
lib/postgresql/check/version.rb,
lib/postgresql/check/constraint.rb,
lib/postgresql/check/schema_dumper.rb,
lib/postgresql/check/command_recorder.rb,
lib/postgresql/check/table_definition.rb,
lib/postgresql/check/schema_statements.rb,
lib/postgresql/check/schema_definitions.rb

Defined Under Namespace

Modules: CommandRecorder, SchemaDefinitions, SchemaDumper, SchemaStatements, Table, TableDefinition Classes: Constraint, Railtie

Constant Summary collapse

VERSION =
'0.1.4'

Class Method Summary collapse

Class Method Details

.setupObject



17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/postgresql/check.rb', line 17

def self.setup
  ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.module_eval do
    include Postgresql::Check::SchemaStatements
    include Postgresql::Check::SchemaDefinitions
  end

  ActiveRecord::SchemaDumper.class_eval do
    include Postgresql::Check::SchemaDumper
  end

  ActiveRecord::Migration::CommandRecorder.class_eval do
    include Postgresql::Check::CommandRecorder
  end
end