Sha256: 97227ab5a5dfca9788dbf08f2ce71c01dbd61c563b99ebca2ef7a30e4bc7bb99

Contents?: true

Size: 436 Bytes

Versions: 7

Compression:

Stored size: 436 Bytes

Contents

class CreateReservations < ActiveRecord::Migration
  def change
    create_table :reservation_events do |t|
      t.datetime :start
      t.datetime :finish
      t.string :title

      t.timestamps
    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.timestamps
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
reservation-0.1.0 lib/generators/reservation/migration/templates/migration.rb
reservation-0.0.6 lib/generators/reservation/migration/templates/migration.rb
reservation-0.0.5 lib/generators/reservation/migration/templates/migration.rb
reservation-0.0.4 lib/generators/reservation/migration/templates/migration.rb
reservation-0.0.3 lib/generators/reservation/templates/migration.rb
reservation-0.0.2 lib/generators/reservation/templates/migration.rb
reservation-0.0.1 lib/generators/reservation/templates/migration.rb