summaryrefslogtreecommitdiffstats
path: root/lib/puppet/rails
diff options
context:
space:
mode:
authorMarkus Roberts <Markus@reality.com>2010-07-08 12:22:56 -0700
committerMarkus Roberts <Markus@reality.com>2010-07-08 12:22:56 -0700
commit3ff38df6fecef533bbd33a63abe368725734446e (patch)
tree389b16a45c0907b0c7090b0da3348fa931acabeb /lib/puppet/rails
parent62dbae53f89e8d9597081c7b7c0a20b419e4737a (diff)
downloadpuppet-3ff38df6fecef533bbd33a63abe368725734446e.tar.gz
puppet-3ff38df6fecef533bbd33a63abe368725734446e.tar.xz
puppet-3ff38df6fecef533bbd33a63abe368725734446e.zip
Fix for #4137 -- Oracle needs text for strings > 255
Oracle has a maximum VARCHAR (string) column length of 255 characters. Any column that is larger than 255 characters needs to be cast as a :text column instead of :string.
Diffstat (limited to 'lib/puppet/rails')
-rw-r--r--lib/puppet/rails/database/schema.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/rails/database/schema.rb b/lib/puppet/rails/database/schema.rb
index 434197b05..20d2e967f 100644
--- a/lib/puppet/rails/database/schema.rb
+++ b/lib/puppet/rails/database/schema.rb
@@ -59,7 +59,7 @@ class Puppet::Rails::Schema
create_table :hosts do |t|
t.column :name, :string, :null => false
t.column :ip, :string
- t.column :environment, :string
+ t.column :environment, :text
t.column :last_compile, :datetime
t.column :last_freshcheck, :datetime
t.column :last_report, :datetime