4dae13c567
From J. Zellman Postgres text type does not support an upper limit.
14 lines
366 B
Ruby
14 lines
366 B
Ruby
class ModifyTextTypes < ActiveRecord::Migration
|
|
def self.up
|
|
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
|
|
|
|
def self.down
|
|
raise ActiveRecord::IrreversibleMigration
|
|
end
|
|
end
|