Project

General

Profile

Feature #19869 » 0001-Raises-journals-notes-limit-to-4GB-19869.patch

okkez _, 2016-02-09 17:10

View differences:

db/migrate/20160209143624_change_journals_notes_limit.rb
1
class ChangeJournalsNotesLimit < ActiveRecord::Migration
2
  def up
3
    if ActiveRecord::Base.connection.adapter_name =~ /mysql/i
4
      max_size = 16.megabytes
5
      change_column :journals, :notes, :text, :limit => max_size
6
    end
7
  end
8

  
9
  def down
10
    # no-op
11
  end
12
end
(1-1/2)