Class: ActiveRecord::ConnectionAdapters::TableDefinition
- Inherits:
-
Object
- Object
- ActiveRecord::ConnectionAdapters::TableDefinition
- 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) = args. column_names = args column_names.each { |name| column(name, :enum, **) } end |