Sha256: c230fee3896e2b131b049a76d52af69798fc4ad0481894e57eb1b3a9f57d338d

Contents?: true

Size: 483 Bytes

Versions: 5

Compression:

Stored size: 483 Bytes

Contents

class CreateBestBoyEvents < ActiveRecord::Migration
  def change
    create_table :best_boy_events do |t|
      t.integer  :owner_id
      t.string   :owner_type
      t.string   :event
      t.string   :event_source
      t.timestamps
    end

    add_index :best_boy_events, :event
    add_index :best_boy_events, :event_source
    add_index :best_boy_events, [:owner_id, :owner_type]
    add_index :best_boy_events, :owner_id
    add_index :best_boy_events, :owner_type
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
best_boy-3.4.0 db/migrate/20150610155237_create_best_boy_events.rb
best_boy-3.3.0 db/migrate/20150610155237_create_best_boy_events.rb
best_boy-3.2.0 db/migrate/20150610155237_create_best_boy_events.rb
best_boy-3.1.0 db/migrate/20150610155237_create_best_boy_events.rb
best_boy-3.0.0 db/migrate/20150610155237_create_best_boy_events.rb