Class: CreateTramwayEventSections
- Inherits:
-
Object
- Object
- CreateTramwayEventSections
- Defined in:
- lib/tramway/event/generators/templates/create_tramway_event_sections.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/tramway/event/generators/templates/create_tramway_event_sections.rb', line 4 def change create_table :tramway_event_sections do |t| t.integer :event_id t.text :title t.text :description t.text :photo t.text :state, default: :active t. end end |