Sha256: f739f31319c546853b1e3f2f5bab6a7fa526a430b64e1d854eda9efb8c059e7e

Contents?: true

Size: 339 Bytes

Versions: 1

Compression:

Stored size: 339 Bytes

Contents

class CreateMessages < ActiveRecord::Migration
  def change
    create_table :messages do |t|
      t.string :message_type
      t.string :status
      t.string :dispatch_to
      t.boolean :is_error
      t.text :content

      t.timestamps
    end
    
    add_index :messages, :message_type
    add_index :messages, :is_error
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
eventbus-0.0.20 admin/db/migrate/20120218124300_create_messages.rb