Commit 71b1030b authored by Jeroen van Baarsen's avatar Jeroen van Baarsen

Added rake task to add limits back in mysql

parent a599d812
desc "GITLAB | Add limits to strings in mysql database"
task add_limits_mysql: :environment do
puts "Adding limits to schema.rb for mysql"
LimitsToMysql.new.up
end
class LimitsToMysql < ActiveRecord::Migration
def up
change_column :merge_request_diffs, :st_commits, :text, limit: 65535
change_column :merge_request_diffs, :st_diffs, :text, limit: 65535
change_column :snippets, :content, :text, limit: 65535
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment