class CreateTableFactors < ActiveRecord::Migration
  def self.up
    create_table :factors do |t|
      t.string :name, :description
      t.decimal :percent
      t.boolean :active
      t.datetime :created_at, :update_at
    end
    create_table :report_factors do |t|
      t.integer :report_id, :factor_id
      t.decimal :percent      
    end
  end
   def self.down
     drop_table :factors
     drop_table :report_factors     
  end

end
