Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20151008123042_add_type_and_description_to_builds.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a19eb6c6c49bb30c3a42d2a13bd8c19022c3b63b (plain)
1
2
3
4
5
6
7
8
9
10
# rubocop:disable all
class AddTypeAndDescriptionToBuilds < ActiveRecord::Migration
  def change
    add_column :ci_builds, :type, :string
    add_column :ci_builds, :target_url, :string
    add_column :ci_builds, :description, :string
    add_index :ci_builds, [:commit_id, :type, :ref]
    add_index :ci_builds, [:commit_id, :type, :name, :ref]
  end
end