diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-05-09 12:18:47 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-06-09 11:00:24 +0300 |
commit | 860760120843ea5ad003cc2f52b28cf0fc7c647b (patch) | |
tree | 2cc0ec3f53578b3cb683c264825dc55bb9af6a4b /db/migrate/20160509091049_add_locked_to_ci_runner.rb | |
parent | 13fd88faa3a334e0a9d221c578abde686d45e368 (diff) |
Add config field to runner to lock it on project
Diffstat (limited to 'db/migrate/20160509091049_add_locked_to_ci_runner.rb')
-rw-r--r-- | db/migrate/20160509091049_add_locked_to_ci_runner.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/db/migrate/20160509091049_add_locked_to_ci_runner.rb b/db/migrate/20160509091049_add_locked_to_ci_runner.rb new file mode 100644 index 00000000000..6294fa9d86b --- /dev/null +++ b/db/migrate/20160509091049_add_locked_to_ci_runner.rb @@ -0,0 +1,8 @@ +class AddLockedToCiRunner < ActiveRecord::Migration + ## + # Downtime expected due to exclusive lock when setting default value. + # + def change + add_column :ci_runners, :locked, :boolean, default: false, null: false + end +end |