Module: WithUuid::Extensions
- Defined in:
- lib/with_uuid/extensions.rb,
lib/with_uuid/extensions/migrations.rb
Defined Under Namespace
Modules: Migrations
Class Method Summary collapse
Class Method Details
.apply! ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/with_uuid/extensions.rb', line 6 def self.apply! if defined? ActiveRecord::ConnectionAdapters::Table ActiveRecord::ConnectionAdapters::Table.send :include, WithUuid::Extensions::Migrations end if defined? ActiveRecord::ConnectionAdapters::TableDefinition ActiveRecord::ConnectionAdapters::TableDefinition.send :include, WithUuid::Extensions::Migrations end end |