20151008123042_add_type_and_description_to_builds.rb 362 Bytes
Newer Older
1
# rubocop:disable all
2
class AddTypeAndDescriptionToBuilds < ActiveRecord::Migration[4.2]
3 4 5 6 7 8 9 10
  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