Sha256: 3b467a4b47baa6a273bef85a1a006bf249425ac54194a35e32783906e1b978bd

Contents?: true

Size: 1.01 KB

Versions: 1

Compression:

Stored size: 1.01 KB

Contents

require 'active_record'
require 'active_record/connection_adapters/abstract_adapter'
require 'active_record/connection_adapters/mysql_adapter' if defined? Mysql
require 'active_record/connection_adapters/postgresql_adapter' if defined? PG

require "foreign_keys/connection_adapters/abstract"
require "foreign_keys/connection_adapters/mysql" if defined? Mysql
require "foreign_keys/connection_adapters/postgresql" if defined? PG

require "foreign_keys/schema_dumper"


ActiveRecord::ConnectionAdapters::AbstractAdapter.__send__(:include, Perfectline::ConnectionAdapters::AbstractAdapter)

if defined?(ActiveRecord::ConnectionAdapters::MysqlAdapter)
  ActiveRecord::ConnectionAdapters::MysqlAdapter.__send__(:include, Perfectline::ConnectionAdapters::MysqlAdapter)
end

if defined?(ActiveRecord::ConnectionAdapters::PostgreSQLAdapter)
  ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.__send__(:include, Perfectline::ConnectionAdapters::PostgreSQLAdapter)
end

ActiveRecord::SchemaDumper.__send__(:include, Perfectline::SchemaDumper)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
foreign_keys-2.0.3 lib/foreign_keys.rb