diff options
Diffstat (limited to 'db/migrate/20140228130325_change_changesets_comments_limit.rb')
-rw-r--r-- | db/migrate/20140228130325_change_changesets_comments_limit.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/db/migrate/20140228130325_change_changesets_comments_limit.rb b/db/migrate/20140228130325_change_changesets_comments_limit.rb new file mode 100644 index 000000000..dccc23757 --- /dev/null +++ b/db/migrate/20140228130325_change_changesets_comments_limit.rb @@ -0,0 +1,12 @@ +class ChangeChangesetsCommentsLimit < ActiveRecord::Migration + def up + if ActiveRecord::Base.connection.adapter_name =~ /mysql/i + max_size = 16.megabytes + change_column :changesets, :comments, :text, :limit => max_size + end + end + + def down + # no-op + end +end |