Class: ActiveRecord::ConnectionAdapters::TableDefinition

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

Instance Method Summary collapse

Instance Method Details

#enum(*args) ⇒ Object


5
6
7
8
9
# File 'lib/enum/schema_definitions.rb', line 5

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