Sha256: 4303845d7477dd94b6f87c5e4e4f23499f5aa2cde00781187fe8844598e205e0

Contents?: true

Size: 508 Bytes

Versions: 1

Compression:

Stored size: 508 Bytes

Contents

class CreateTrackableActions < ActiveRecord::Migration
  def self.up
    create_table :trackable_actions do |t|
      t.integer :trackable_session_id
      t.string :kind
      t.string :label
      t.string :referrer
      t.string :url
      t.timestamps
    end
    add_index :trackable_actions, :kind
    add_index :trackable_actions, :label
    add_index :trackable_actions, :url
    add_index :trackable_actions, :trackable_session_id
  end

  def self.down
    drop_table :trackable_actions
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mitamirri-0.13.8 db/migrate/20100810173605_create_trackable_actions.rb