2009-10-21 07:42:48 +02:00
|
|
|
class ModifyTextTypes < ActiveRecord::Migration
|
|
|
|
def self.up
|
2010-01-21 00:39:36 +01:00
|
|
|
unless adapter_name.eql?('PostgreSQL')
|
|
|
|
change_column :revisions, :content, :text, :limit => 16777215
|
|
|
|
end
|
2009-10-21 07:42:48 +02:00
|
|
|
change_column :pages, :name, :string, :limit => 255
|
|
|
|
change_column :webs, :additional_style, :text
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.down
|
|
|
|
raise ActiveRecord::IrreversibleMigration
|
|
|
|
end
|
|
|
|
end
|