#373: use false as default value for use_cached_chroot field

This commit is contained in:
Vokhmin Alexey V 2014-05-12 13:22:50 +04:00
parent 9795f3b5bc
commit b90aa0f50e
2 changed files with 11 additions and 2 deletions

View File

@ -0,0 +1,9 @@
class DisableUseCachedChrootByDefault < ActiveRecord::Migration
def up
change_column :build_lists, :use_cached_chroot, :boolean, null: false, default: false
end
def down
change_column :build_lists, :use_cached_chroot, :boolean, null: false, default: true
end
end

View File

@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20140502160112) do
ActiveRecord::Schema.define(version: 20140512091135) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -140,7 +140,7 @@ ActiveRecord::Schema.define(version: 20140502160112) do
t.integer "builder_id"
t.boolean "include_testing_subrepository"
t.string "auto_publish_status", default: "default", null: false
t.boolean "use_cached_chroot", default: true, null: false
t.boolean "use_cached_chroot", default: false, null: false
t.index ["advisory_id"], :name => "index_build_lists_on_advisory_id"
t.index ["arch_id"], :name => "index_build_lists_on_arch_id"
t.index ["mass_build_id", "status"], :name => "index_build_lists_on_mass_build_id_and_status"