You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sqm-dashboards/db/migrate/20211029195454_remove_null_...

20 lines
661 B

class RemoveNullConstraintsFromMeasureBenchmarks < ActiveRecord::Migration[6.1]
def up
change_table :measures do |t|
t.change :watch_low_benchmark, :float, null: true
t.change :growth_low_benchmark, :float, null: true
t.change :approval_low_benchmark, :float, null: true
t.change :ideal_low_benchmark, :float, null: true
end
end
def down
change_table :measures do |t|
t.change :watch_low_benchmark, :float, null: false
t.change :growth_low_benchmark, :float, null: false
t.change :approval_low_benchmark, :float, null: false
t.change :ideal_low_benchmark, :float, null: false
end
end
end