Sha256: 9c3a22517be7a79e6cacf54713c1d63928673ddfc88f6e172a465ddc828b0cef

Contents?: true

Size: 486 Bytes

Versions: 2

Compression:

Stored size: 486 Bytes

Contents

module RedhillonrailsCore::ActiveRecord::ConnectionAdapters
  module SchemaStatements
    def self.included(base)
      base.module_eval do
        alias_method_chain :create_table, :redhillonrails_core
      end
    end
  
    def create_table_with_redhillonrails_core(name, options = {})
      create_table_without_redhillonrails_core(name, options) do |table_definition|
        table_definition.name = name
        yield table_definition if block_given?
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
redhillonrails_core-2.0.0.pre lib/redhillonrails_core/active_record/connection_adapters/schema_statements.rb
redhillonrails_core-1.2.0 lib/redhillonrails_core/active_record/connection_adapters/schema_statements.rb