Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

Commit

Permalink
add a default concourse pipeline name for any concourse projects with…
Browse files Browse the repository at this point in the history
…out one already
  • Loading branch information
Greg Chattin-McNichols and Gregg Van Hove committed Aug 11, 2015
1 parent 29c1406 commit d2d86a6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .pairs
Expand Up @@ -45,6 +45,7 @@ pairs:
yn: Yuki Nishijima; ynishijima
gv: Gregg Van Hove; gvanhove
rn: Robert Neumann; rneumann
gcm: Greg Chattin-McNichols; gchattinmcnichols

email:
prefix: pair
Expand Down
7 changes: 7 additions & 0 deletions db/migrate/20150811225349_add_default_concourse_pipeline.rb
@@ -0,0 +1,7 @@
class AddDefaultConcoursePipeline < ActiveRecord::Migration
def change
execute <<-SQL
update projects set concourse_pipeline_name = 'main' where concourse_pipeline_name IS NULL and type = 'ConcourseProject'
SQL
end
end
2 changes: 1 addition & 1 deletion db/schema.rb
Expand Up @@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 20150805184958) do
ActiveRecord::Schema.define(version: 20150811225349) do

# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
Expand Down

0 comments on commit d2d86a6

Please sign in to comment.