class CreateComponents < ActiveRecord::Migration def self.up create_table(:components, :id => false) do |t| t.string :uuid, :limit => 36, :primary => true t.string :name t.boolean :managed, :default => true t.text :specification t.text :options t.timestamps end add_index :components, :uuid, :unique => true end def self.down drop_table :components end end