redmine/db/migrate/070_change_attachments_content_type_limit.rb
Jean-Philippe Lang 8195f95464 Fixes migrations that change string limits for sqlite.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1222 e93f8b46-1217-0410-a6f0-8f06a7374b81
2008-03-09 18:25:37 +00:00

10 righe
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