Sha256: 5b91fabd4c3a19ce49ecffd4afdfdd49b49fe3da2d50ff060e54a6cbe58b5ff8

Contents?: true

Size: 549 Bytes

Versions: 16

Compression:

Stored size: 549 Bytes

Contents

class AddActivity < ActiveRecord::Migration
  def change
    create_table :core_activities do |t|
      t.integer       :account_id
      t.references    :user
      t.string        :browser
      t.string        :session_id
      t.string        :ip_address
      t.string        :controller
      t.string        :action
      t.string        :params
      t.string        :slug
      t.string        :lesson
      t.datetime      :created_at
    end

    add_index :core_activities, :account_id
    add_index :core_activities, :user_id
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
dm_core-4.2.3.10 db/migrate/20130402203739_add_activity.rb
dm_core-4.2.3.9 db/migrate/20130402203739_add_activity.rb
dm_core-4.2.3.8 db/migrate/20130402203739_add_activity.rb
dm_core-4.2.3.7 db/migrate/20130402203739_add_activity.rb
dm_core-4.2.3.6 db/migrate/20130402203739_add_activity.rb
dm_core-4.2.3.5 db/migrate/20130402203739_add_activity.rb
dm_core-4.2.3.4 db/migrate/20130402203739_add_activity.rb
dm_core-4.2.3.3 db/migrate/20130402203739_add_activity.rb
dm_core-4.2.3.2 db/migrate/20130402203739_add_activity.rb
dm_core-4.2.3.1 db/migrate/20130402203739_add_activity.rb
dm_core-4.2.3 db/migrate/20130402203739_add_activity.rb
dm_core-4.2.2.3 db/migrate/20130402203739_add_activity.rb
dm_core-4.2.2.2 db/migrate/20130402203739_add_activity.rb
dm_core-4.2.2.1 db/migrate/20130402203739_add_activity.rb
dm_core-4.2.2 db/migrate/20130402203739_add_activity.rb
dm_core-4.2.1.5 db/migrate/20130402203739_add_activity.rb