Sha256: 73c9839c99ae66a039523c62a4e5cb5d2bac8154fc67d6063e9462fe1006bad4
Contents?: true
Size: 649 Bytes
Versions: 2
Compression:
Stored size: 649 Bytes
Contents
module RedHillConsulting::Core::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 = {}, &block) if options.include?(:comment) options = options.dup comment = options.delete(:comment) end create_table_without_redhillonrails_core(name, options) do |table_defintion| table_defintion.name = name yield table_defintion end set_table_comment(name, comment) if comment end end end
Version data entries
2 entries across 2 versions & 1 rubygems