Module: RedhillonrailsCore::ActiveRecord::ConnectionAdapters::SchemaStatements
- Defined in:
- lib/redhillonrails_core/active_record/connection_adapters/schema_statements.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
3 4 5 6 7 |
# File 'lib/redhillonrails_core/active_record/connection_adapters/schema_statements.rb', line 3 def self.included(base) base.module_eval do alias_method_chain :create_table, :redhillonrails_core end end |
Instance Method Details
#create_table_with_redhillonrails_core(name, options = {}) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/redhillonrails_core/active_record/connection_adapters/schema_statements.rb', line 9 def create_table_with_redhillonrails_core(name, = {}) create_table_without_redhillonrails_core(name, ) do |table_definition| table_definition.name = name yield table_definition if block_given? end end |