Defect #14626 ยป 14626-change_repositories_extra_info_limit.diff
db/migrate/20170320051650_change_repositories_extra_info_limit.rb (working copy) | ||
---|---|---|
1 |
class ChangeRepositoriesExtraInfoLimit < ActiveRecord::Migration |
|
2 |
def up |
|
3 |
if ActiveRecord::Base.connection.adapter_name =~ /mysql/i |
|
4 |
max_size = 16.megabytes |
|
5 |
change_column :repositories, :extra_info, :text, :limit => max_size |
|
6 |
end |
|
7 |
end |
|
8 | ||
9 |
def down |
|
10 |
# no-op |
|
11 |
end |
|
12 |
end |