Redmine/db/migrate/070_change_attachments_cont...

10 lines
252 B
Ruby

class ChangeAttachmentsContentTypeLimit < ActiveRecord::Migration
def self.up
change_column :attachments, :content_type, :string, :limit => nil
end
def self.down
change_column :attachments, :content_type, :string, :limit => 60
end
end