class CreateActivations < ActiveRecord::Migration def self.up create_table :activations do |t| t.integer :order_id, :null => false t.integer :build, :null => false t.string :computer_id, :null => false, :references => nil t.string :product t.timestamps end end def self.down drop_table :activations end end