Add missing migrations
This commit is contained in:
parent
249a9476d4
commit
8f4ae40e3c
3 changed files with 11 additions and 1 deletions
5
db/migrate/20151019111551_fix_build_tags.rb
Normal file
5
db/migrate/20151019111551_fix_build_tags.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
class FixBuildTags < ActiveRecord::Migration
|
||||
def change
|
||||
execute("UPDATE taggings SET taggable_type='CommitStatus' WHERE taggable_type='Ci::Build'")
|
||||
end
|
||||
end
|
5
db/migrate/20151019111703_fail_build_without_names.rb
Normal file
5
db/migrate/20151019111703_fail_build_without_names.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
class FailBuildWithoutNames < ActiveRecord::Migration
|
||||
def change
|
||||
execute("UPDATE ci_builds SET status='failed' WHERE name IS NULL AND status='pending'")
|
||||
end
|
||||
end
|
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20151016195706) do
|
||||
ActiveRecord::Schema.define(version: 20151019111703) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
|
Loading…
Reference in a new issue