Add NOT NULL constraint on cpu_limit

This commit is contained in:
Sebastian Serth
2021-09-19 15:21:41 +02:00
parent 0cc1c7a396
commit 8bd9a93944
2 changed files with 2 additions and 2 deletions

View File

@ -2,6 +2,6 @@
class AddCpuLimitToExecutionEnvironment < ActiveRecord::Migration[6.1]
def change
add_column :execution_environments, :cpu_limit, :integer, default: 20
add_column :execution_environments, :cpu_limit, :integer, null: false, default: 20
end
end