Sha256: e062a7e22df6cdc24314795529280aa8a789425e3390316ce87f19cb0107a465

Contents?: true

Size: 360 Bytes

Versions: 94

Compression:

Stored size: 360 Bytes

Contents

class CreateEvents < ActiveRecord::Migration[5.0]
  def change
    create_table :events do |t|
      t.string :title, null: false
      t.text :description
      t.datetime :starts_at, null: false
      t.datetime :ends_at, null: false
      t.string :url

      t.timestamps
    end
    add_index :events, :starts_at
    add_index :events, :ends_at
  end
end

Version data entries

94 entries across 94 versions & 1 rubygems

Version Path
station-0.5.16 lib/nexmo_developer/db/migrate/20170215101603_create_events.rb
station-0.5.15 lib/nexmo_developer/db/migrate/20170215101603_create_events.rb
station-0.5.14 lib/nexmo_developer/db/migrate/20170215101603_create_events.rb
station-0.5.13 lib/nexmo_developer/db/migrate/20170215101603_create_events.rb
station-0.5.12 lib/nexmo_developer/db/migrate/20170215101603_create_events.rb
station-0.5.11 lib/nexmo_developer/db/migrate/20170215101603_create_events.rb
station-0.5.10 lib/nexmo_developer/db/migrate/20170215101603_create_events.rb
station-0.5.9 lib/nexmo_developer/db/migrate/20170215101603_create_events.rb
station-0.5.8 lib/nexmo_developer/db/migrate/20170215101603_create_events.rb
station-0.5.7 lib/nexmo_developer/db/migrate/20170215101603_create_events.rb
station-0.5.6 lib/nexmo_developer/db/migrate/20170215101603_create_events.rb
station-0.5.5 lib/nexmo_developer/db/migrate/20170215101603_create_events.rb
station-0.5.4 lib/nexmo_developer/db/migrate/20170215101603_create_events.rb
station-0.5.3 lib/nexmo_developer/db/migrate/20170215101603_create_events.rb
station-0.5.2 lib/nexmo_developer/db/migrate/20170215101603_create_events.rb
station-0.5.1 lib/nexmo_developer/db/migrate/20170215101603_create_events.rb
station-0.5.0 lib/nexmo_developer/db/migrate/20170215101603_create_events.rb
station-0.4.9 lib/nexmo_developer/db/migrate/20170215101603_create_events.rb
station-0.4.8 lib/nexmo_developer/db/migrate/20170215101603_create_events.rb
station-0.4.7 lib/nexmo_developer/db/migrate/20170215101603_create_events.rb