class CreateRepLogins < ActiveRecord::Migration
  def self.up
    create_table :rep_logins do |t|
      t.integer :report_id
      t.integer :from_id
      t.integer :to_id
      t.integer :cable_length
      t.integer :attic_length
      t.integer :material_id
      t.integer :done_material_id
      t.decimal :sum, :precision => 10, :scale => 2
      t.timestamps
    end
  end

  def self.down
    drop_table :rep_logins
  end
end
