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: c72b1c611c6db7125921b5f2aebe8f3aa884661e (plain)
1
2
3
4
5
6
7
8
9
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