foreman/db/migrate/20090718064254_create_subnets.rb @ 8a65dff7
96b38b3c | Ohad Levy | class CreateSubnets < ActiveRecord::Migration
|
|
def self.up
|
|||
create_table :subnets do |t|
|
|||
t.string :number, :limit => 15
|
|||
t.string :mask, :limit => 15
|
|||
c6eee281 | Ohad Levy | t.references :domain
|
|
96b38b3c | Ohad Levy | t.integer :priority
|
|
t.string :ranges, :limit => 512
|
|||
t.text :name
|
|||
t.string :vlanid, :limit => 10
|
|||
t.timestamps
|
|||
end
|
|||
end
|
|||
def self.down
|
|||
drop_table :subnets
|
|||
end
|
|||
end
|