Sha256: 7edc742edb4a00a71c23421efcdd2cad2d7d6f133bb070e21c429800d4ce52f3

Contents?: true

Size: 1.66 KB

Versions: 1

Compression:

Stored size: 1.66 KB

Contents

$:.unshift(File.dirname(__FILE__)) unless
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
  
require 'usesguid_migrations/active_record_extensions/base'
require 'usesguid_migrations/active_record_extensions/schema'
require 'usesguid_migrations/active_record_extensions/schema_dumper'
require 'usesguid_migrations/active_record_extensions/connection_adapters/mysql_adapter'
require 'usesguid_migrations/active_record_extensions/connection_adapters/schema_statements'
require 'usesguid_migrations/active_record_extensions/connection_adapters/table_definition'
  
module UsesguidMigrations
  VERSION = '1.0.0'
end

ActiveRecord::Base.send( :include, UsesguidMigrations::ActiveRecordExtensions::Base ) if defined?( ActiveRecord::Base )
ActiveRecord::Schema.send( :include, UsesguidMigrations::ActiveRecordExtensions::Schema ) if defined?( ActiveRecord::Schema )
ActiveRecord::SchemaDumper.send( :include, UsesguidMigrations::ActiveRecordExtensions::SchemaDumper ) if defined?( ActiveRecord::SchemaDumper )
if defined?( ActiveRecord::ConnectionAdapters::SchemaStatements )
  ActiveRecord::ConnectionAdapters::SchemaStatements.send( :include, UsesguidMigrations::ActiveRecordExtensions::ConnectionAdapters::SchemaStatements )
end
if defined?( ActiveRecord::ConnectionAdapters::TableDefinition )
  ActiveRecord::ConnectionAdapters::TableDefinition.send( :include, UsesguidMigrations::ActiveRecordExtensions::ConnectionAdapters::TableDefinition )
end
if defined?( ActiveRecord::ConnectionAdapters::MysqlAdapter )
  ActiveRecord::ConnectionAdapters::MysqlAdapter.send( :include, UsesguidMigrations::ActiveRecordExtensions::ConnectionAdapters::MysqlAdapter )
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
usesguid_migrations-1.0.0 lib/usesguid_migrations.rb