Mercurial > hg > soundsoftware-site
view .svn/pristine/a7/a78ac8bdb88f10572a9f376091622a0490f579ff.svn-base @ 1543:05d639e5d59b feature_1136
First cut of a git export script
author | Chris Cannam |
---|---|
date | Tue, 12 Jan 2016 15:15:02 +0000 |
parents | cbb26bc654de |
children |
line wrap: on
line source
class ChangeWikiContentsTextLimit < ActiveRecord::Migration def self.up # Migrates MySQL databases only # Postgres would raise an error (see http://dev.rubyonrails.org/ticket/3818) # Not fixed in Rails 2.3.5 if ActiveRecord::Base.connection.adapter_name =~ /mysql/i max_size = 16.megabytes change_column :wiki_contents, :text, :text, :limit => max_size change_column :wiki_content_versions, :data, :binary, :limit => max_size end end def self.down # no-op end end