Add NOT NULL constraint on cpu_limit
This commit is contained in:
@ -2,6 +2,6 @@
|
|||||||
|
|
||||||
class AddCpuLimitToExecutionEnvironment < ActiveRecord::Migration[6.1]
|
class AddCpuLimitToExecutionEnvironment < ActiveRecord::Migration[6.1]
|
||||||
def change
|
def change
|
||||||
add_column :execution_environments, :cpu_limit, :integer, default: 20
|
add_column :execution_environments, :cpu_limit, :integer, null: false, default: 20
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -112,7 +112,7 @@ ActiveRecord::Schema.define(version: 2021_06_02_071834) do
|
|||||||
t.integer "file_type_id"
|
t.integer "file_type_id"
|
||||||
t.integer "memory_limit"
|
t.integer "memory_limit"
|
||||||
t.boolean "network_enabled"
|
t.boolean "network_enabled"
|
||||||
t.integer "cpu_limit", default: 20
|
t.integer "cpu_limit", default: 20, null: false
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "exercise_collection_items", id: :serial, force: :cascade do |t|
|
create_table "exercise_collection_items", id: :serial, force: :cascade do |t|
|
||||||
|
Reference in New Issue
Block a user