Sha256: 62fc176ac2ea1cfbc51861b43d6974f14a8989335776cf24337b1ded21414b21

Contents?: true

Size: 368 Bytes

Versions: 9

Compression:

Stored size: 368 Bytes

Contents

class CreateSpudCalendarEvents < ActiveRecord::Migration
  def change
    create_table :spud_calendar_events do |t|
      t.references :spud_calendar
      t.string :title
      t.text :description
      t.datetime :start_at
      t.datetime :end_at
      t.boolean :all_day

      t.timestamps
    end
    add_index :spud_calendar_events, :spud_calendar_id
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
tb_events-1.3.0 db/migrate/20120216192531_create_spud_calendar_events.rb
tb_events-1.1.2 db/migrate/20120216192531_create_spud_calendar_events.rb
tb_events-1.2.0.beta1 db/migrate/20120216192531_create_spud_calendar_events.rb
tb_events-1.1.1 db/migrate/20120216192531_create_spud_calendar_events.rb
tb_events-1.1.0 db/migrate/20120216192531_create_spud_calendar_events.rb
spud_events-0.9.0 db/migrate/20120216192531_create_spud_calendar_events.rb
tb_events-1.0.2 db/migrate/20120216192531_create_spud_calendar_events.rb
tb_events-1.0.1 db/migrate/20120216192531_create_spud_calendar_events.rb
tb_events-1.0 db/migrate/20120216192531_create_spud_calendar_events.rb