2016-06-16 23:09:34 +05:30
|
|
|
# rubocop:disable all
|
2015-10-24 18:46:33 +05:30
|
|
|
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
|