2018-11-13 02:27:31 -05:00
|
|
|
class LimitsToMysql < ActiveRecord::Migration[4.2]
|
2014-04-15 10:26:15 -04:00
|
|
|
def up
|
2014-04-16 05:26:02 -04:00
|
|
|
return unless ActiveRecord::Base.configurations[Rails.env]['adapter'] =~ /^mysql/
|
2014-04-15 10:26:15 -04:00
|
|
|
|
|
|
|
change_column :snippets, :content, :text, limit: 2147483647
|
|
|
|
change_column :notes, :st_diff, :text, limit: 2147483647
|
|
|
|
end
|
|
|
|
end
|