Sha256: d7628ad10d5356be90e551c734ee3f4943d4177c93ce5c33892ac1c57b3836c0

Contents?: true

Size: 395 Bytes

Versions: 5

Compression:

Stored size: 395 Bytes

Contents

class CreateOperatingsystems < ActiveRecord::Migration
  def self.up
    create_table :operatingsystems do |t|
      t.string   :major, :limit => 5,  :default => "", :null => false
      t.string   :name, :limit => 64
      t.string   :minor, :limit => 16
      t.string   :nameindicator, :limit => 3

      t.timestamps
    end
  end

  def self.down
    drop_table :operatingsystems
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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