Feature #19869 » 0002-Raises-issues-description-limit-to-4GB-19869.patch
| db/migrate/20160209143726_change_issues_description_limit.rb | ||
|---|---|---|
| 1 |
class ChangeIssuesDescriptionLimit < ActiveRecord::Migration |
|
| 2 |
def up |
|
| 3 |
if ActiveRecord::Base.connection.adapter_name =~ /mysql/i |
|
| 4 |
max_size = 16.megabytes |
|
| 5 |
change_column :issues, :description, :text, :limit => max_size |
|
| 6 |
end |
|
| 7 |
end |
|
| 8 | ||
| 9 |
def down |
|
| 10 |
# no-op |
|
| 11 |
end |
|
| 12 |
end |
|
- « Previous
- 1
- 2
- Next »