Project

General

Profile

Download (570 Bytes) Statistics
| Branch: | Tag: | Revision:
class CreatePtables < ActiveRecord::Migration
class Ptable < ActiveRecord::Base; end
def self.up
create_table :ptables do |t|
t.string :name, :limit => 64, :null => false
t.string :layout, :limit => 4096, :null => false
t.references :operatingsystem
t.timestamps
end
create_table :operatingsystems_ptables, :id => false do |t|
t.references :ptable, :null => false
t.references :operatingsystem, :null => false
end
end

def self.down
drop_table :ptables
drop_table :operatingsystems_ptables
end
end
(11-11/172)