Class: CreateSelections
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateSelections
- Defined in:
- lib/generators/selections_scaffold/templates/create_selections.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/generators/selections_scaffold/templates/create_selections.rb', line 2 def change create_table :selections do |t| t.string :name t.integer :parent_id t.string :system_code t.integer :position_value t.boolean :is_default t.boolean :is_system t.datetime :archived_at t. end end |