Sha256: 405b9b4a096a5f7e159084e076b2a82e41c062a16ccbda983ca2dd5e94676b6a

Contents?: true

Size: 613 Bytes

Versions: 64

Compression:

Stored size: 613 Bytes

Contents

# This migration comes from dm_core (originally 20130402203739)
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

64 entries across 64 versions & 4 rubygems

Version Path
dm_event-4.2.1.5 spec/dummy/db/migrate/20141114170938_add_activity.dm_core.rb
dm_newsletter-4.2.1.5 spec/dummy/db/migrate/20141114170938_add_activity.dm_core.rb
dm_forum-4.2.1.5 spec/dummy/db/migrate/20141114170938_add_activity.dm_core.rb
dm_cms-4.2.1.5 spec/dummy/db/migrate/20141114170938_add_activity.dm_core.rb