Sha256: 693401af456773946f6b6b7d3288ebc838c35c6c8f27bcf89cc16e6612f0e14f

Contents?: true

Size: 389 Bytes

Versions: 16

Compression:

Stored size: 389 Bytes

Contents

class CreateActivitiesTable < ActiveRecord::Migration
  def self.up
    create_table :activities do |t|
      t.column :user_id, :integer, :limit => 10
      t.column :action, :string, :limit => 50
      t.column :item_id, :integer, :limit => 10
      t.column :item_type, :string
      t.column :created_at, :datetime
    end


  end

  def self.down
    drop_table :activities
  end
end

Version data entries

16 entries across 8 versions & 1 rubygems

Version Path
community_engine-2.3.2 vendor/plugins/activity_tracker/generators/activity_migration/templates/migration.rb
community_engine-2.3.2 db/migrate/039_create_activities_table.rb
community_engine-2.3.1 vendor/plugins/activity_tracker/generators/activity_migration/templates/migration.rb
community_engine-2.3.1 db/migrate/039_create_activities_table.rb
community_engine-2.3.0 db/migrate/039_create_activities_table.rb
community_engine-2.3.0 vendor/plugins/activity_tracker/generators/activity_migration/templates/migration.rb
community_engine-2.1.0 db/migrate/039_create_activities_table.rb
community_engine-2.1.0 vendor/plugins/activity_tracker/generators/activity_migration/templates/migration.rb
community_engine-2.0.0 vendor/plugins/activity_tracker/generators/activity_migration/templates/migration.rb
community_engine-2.0.0 db/migrate/039_create_activities_table.rb
community_engine-2.0.0.beta3 vendor/plugins/activity_tracker/generators/activity_migration/templates/migration.rb
community_engine-2.0.0.beta3 db/migrate/039_create_activities_table.rb
community_engine-2.0.0.beta2 db/migrate/039_create_activities_table.rb
community_engine-2.0.0.beta2 vendor/plugins/activity_tracker/generators/activity_migration/templates/migration.rb
community_engine-2.0.0.beta1 vendor/plugins/activity_tracker/generators/activity_migration/templates/migration.rb
community_engine-2.0.0.beta1 db/migrate/039_create_activities_table.rb