Class: ActiveRecord::ConnectionAdapters::TableDefinition

Inherits:
Object
  • Object
show all
Defined in:
lib/active_record/mysql/enum/schema_definitions.rb

Instance Method Summary collapse

Instance Method Details

#enum(*args) ⇒ Object



6
7
8
9
10
# File 'lib/active_record/mysql/enum/schema_definitions.rb', line 6

def enum(*args)
  options = args.extract_options!
  column_names = args
  column_names.each { |name| column(name, :enum, **options) }
end