2016-06-09 12:39:16 +00:00
|
|
|
# rubocop:disable all
|
2015-12-04 11:55:23 +00:00
|
|
|
class AddCiToProject < ActiveRecord::Migration
|
2015-12-23 18:39:44 +00:00
|
|
|
def change
|
2015-12-10 16:29:44 +00:00
|
|
|
add_column :projects, :ci_id, :integer
|
2015-12-04 11:55:23 +00:00
|
|
|
add_column :projects, :builds_enabled, :boolean, default: true, null: false
|
|
|
|
add_column :projects, :shared_runners_enabled, :boolean, default: true, null: false
|
2015-12-10 16:29:44 +00:00
|
|
|
add_column :projects, :runners_token, :string
|
2015-12-04 11:55:23 +00:00
|
|
|
add_column :projects, :build_coverage_regex, :string
|
|
|
|
add_column :projects, :build_allow_git_fetch, :boolean, default: true, null: false
|
|
|
|
add_column :projects, :build_timeout, :integer, default: 3600, null: false
|
|
|
|
end
|
|
|
|
end
|