Text type migration now works under postgres. Postgres text type does not support an upper limit

master
Jeff Zellman 2010-01-20 17:39:36 -06:00
parent 36089f1543
commit 87808dd7ee
1 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,8 @@
class ModifyTextTypes < ActiveRecord::Migration
def self.up
change_column :revisions, :content, :text, :limit => 16777215
unless adapter_name.eql?('PostgreSQL')
change_column :revisions, :content, :text, :limit => 16777215
end
change_column :pages, :name, :string, :limit => 255
change_column :webs, :additional_style, :text
end