Sha256: 903e36ae6c08b2814e7c1fe0e2288d6b18785788b8ec12459d4dd83419104309

Contents?: true

Size: 300 Bytes

Versions: 2

Compression:

Stored size: 300 Bytes

Contents

require 'active_record/connection_adapters/mysql/schema_definitions'

module ActiveRecord
  module ConnectionAdapters
    module MySQL
      module ColumnMethods
        def enum(*args, **options)
          args.each { |name| column(name, :enum, **options) }
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sql_enum-1.0.0 lib/active_record/connection_adapters/mysql/column_methods.rb
sql_enum-0.4.0 lib/active_record/connection_adapters/mysql/column_methods.rb