Sha256: 5632a022493fe3451271a8f3e1d2da1b31226dc7a13b1e33a5ffefb49847da0e
Contents?: true
Size: 835 Bytes
Versions: 17
Compression:
Stored size: 835 Bytes
Contents
class GiveDefaultValuesForCountsFromTestRuns < ActiveRecord::Migration def up [:duration, :fail_count, :pass_count, :skip_count, :total_count, :regression_count].each do |column| change_column :test_runs, column, :integer, null: false, default: 0 end change_column :test_runs, :covered_percent, :decimal, precision: 6, scale: 5, null: false, default: 0 change_column :test_runs, :covered_strength, :decimal, precision: 6, scale: 5, null: false, default: 0 end def down [:duration, :fail_count, :pass_count, :skip_count, :total_count, :regression_count].each do |column| change_column :test_runs, column, :integer end change_column :test_runs, :covered_percent, :decimal, precision: 6, scale: 5 change_column :test_runs, :covered_strength, :decimal, precision: 6, scale: 5 end end
Version data entries
17 entries across 17 versions & 1 rubygems