Sha256: 4e0269886926888a9ba4a6583dddecb39f15d2981ec964f5e6748c095862b4d1

Contents?: true

Size: 274 Bytes

Versions: 5

Compression:

Stored size: 274 Bytes

Contents

class CreateReports < ActiveRecord::Migration
  def self.up
    create_table :reports do |t|
      t.references :host, :null => false
      t.text       :log
      t.datetime   :reported_at
      t.timestamps
    end
  end

  def self.down
    drop_table :reports
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_discovery-1.0.0 test/foreman_app/db/migrate/20090729132209_create_reports.rb
foreman_discovery-1.0.0.rc4 test/foreman_app/db/migrate/20090729132209_create_reports.rb
foreman_discovery-1.0.0.rc3 test/foreman_app/db/migrate/20090729132209_create_reports.rb
foreman_discovery-1.0.0.rc2 test/foreman_app/db/migrate/20090729132209_create_reports.rb
foreman_discovery-1.0.0.rc1 test/foreman_app/db/migrate/20090729132209_create_reports.rb