@@ -0,0 +1,12 | |||||
|
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 |
@@ -0,0 +1,13 | |||||
|
1 | class ChangeJournalDetailsValueLimit < ActiveRecord::Migration | |||
|
2 | def up | |||
|
3 | if ActiveRecord::Base.connection.adapter_name =~ /mysql/i | |||
|
4 | max_size = 16.megabytes | |||
|
5 | change_column :journal_details, :value, :text, :limit => max_size | |||
|
6 | change_column :journal_details, :old_value, :text, :limit => max_size | |||
|
7 | end | |||
|
8 | end | |||
|
9 | ||||
|
10 | def down | |||
|
11 | # no-op | |||
|
12 | end | |||
|
13 | end |
General Comments 0
You need to be logged in to leave comments.
Login now