Class: CreateReservations
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateReservations
- Defined in:
- lib/generators/reservation/migration/templates/migration.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/generators/reservation/migration/templates/migration.rb', line 2 def change create_table :reservation_events do |t| t.datetime :start t.datetime :finish t.string :title t. end create_table :reservation_reservations do |t| t.integer :event_id t.string :subject_type t.integer :subject_id t.string :reservation_status t.string :role t. end end |