Fix Migration to work under PostgreSQL
From J. Zellman Postgres text type does not support an upper limit.
This commit is contained in:
parent
d67ce28855
commit
4dae13c567
|
@ -1,6 +1,8 @@
|
||||||
class ModifyTextTypes < ActiveRecord::Migration
|
class ModifyTextTypes < ActiveRecord::Migration
|
||||||
def self.up
|
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 :pages, :name, :string, :limit => 255
|
||||||
change_column :webs, :additional_style, :text
|
change_column :webs, :additional_style, :text
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue