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

20160823081327_change_merge_error_to_text.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7920389cd83a1eab517fa21a8f0c3d633ba84913 (plain)
1
2
3
4
5
6
7
8
9
10
class ChangeMergeErrorToText < ActiveRecord::Migration
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = true
  DOWNTIME_REASON = 'This migration requires downtime because it alters a column from varchar(255) to text.'

  def change
    change_column :merge_requests, :merge_error, :text, limit: 65535
  end
end