Feature #19869 » 0001-Raises-journals-notes-limit-to-4GB-19869.patch
| 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 |
|