Class: CreateResoEnumerations
- Inherits:
-
Object
- Object
- CreateResoEnumerations
- Defined in:
- lib/generators/reso/install/templates/create_reso_enumerations.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/generators/reso/install/templates/create_reso_enumerations.rb', line 2 def change create_table :reso_enumerations, :force => true do |t| t.string :name t.string :type t. end add_index :reso_enumerations, :type add_index :reso_enumerations, :name add_index :reso_enumerations, [:type, :name] end |