Sha256: 8c42c8bbbb8acc8569959ddbca39177654e1ef1b81f10f76dddaaa9b8f6bf871

Contents?: true

Size: 419 Bytes

Versions: 83

Compression:

Stored size: 419 Bytes

Contents

class CreateLogCollectors < ActiveRecord::Migration
  def self.up
    create_table :appstats_log_collectors do |t|
      t.string :host
      t.string :filename
      t.string :status
      t.timestamps
    end
    add_column :appstats_entries, :appstats_log_collector_id, :integer
  end

  def self.down
    drop_table :appstats_log_collectors
    remove_column :appstats_entries, :appstats_log_collector_id
  end
end

Version data entries

83 entries across 83 versions & 1 rubygems

Version Path
appstats-0.25.1 db/migrate/20110204183259_create_log_collectors.rb
appstats-0.25.0 db/migrate/20110204183259_create_log_collectors.rb
appstats-0.24.0 db/migrate/20110204183259_create_log_collectors.rb
appstats-0.23.5 db/migrations/20110204183259_create_log_collectors.rb
appstats-0.23.4 db/migrations/20110204183259_create_log_collectors.rb
appstats-0.23.3 db/migrations/20110204183259_create_log_collectors.rb
appstats-0.23.2 db/migrations/20110204183259_create_log_collectors.rb
appstats-0.23.1 db/migrations/20110204183259_create_log_collectors.rb
appstats-0.23.0 db/migrations/20110204183259_create_log_collectors.rb
appstats-0.22.6 db/migrations/20110204183259_create_log_collectors.rb
appstats-0.22.5 db/migrations/20110204183259_create_log_collectors.rb
appstats-0.22.4 db/migrations/20110204183259_create_log_collectors.rb
appstats-0.22.3 db/migrations/20110204183259_create_log_collectors.rb
appstats-0.22.2 db/migrations/20110204183259_create_log_collectors.rb
appstats-0.22.1 db/migrations/20110204183259_create_log_collectors.rb
appstats-0.22.0 db/migrations/20110204183259_create_log_collectors.rb
appstats-0.21.3 db/migrations/20110204183259_create_log_collectors.rb
appstats-0.21.2 db/migrations/20110204183259_create_log_collectors.rb
appstats-0.21.1 db/migrations/20110204183259_create_log_collectors.rb
appstats-0.20.12 db/migrations/20110204183259_create_log_collectors.rb