summaryrefslogtreecommitdiffstats
path: root/lib/puppet/rails/database/schema.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/rails/database/schema.rb')
-rw-r--r--lib/puppet/rails/database/schema.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/puppet/rails/database/schema.rb b/lib/puppet/rails/database/schema.rb
index 20d2e967f..a2477f2e6 100644
--- a/lib/puppet/rails/database/schema.rb
+++ b/lib/puppet/rails/database/schema.rb
@@ -21,7 +21,7 @@ class Puppet::Rails::Schema
# Thanks, mysql! MySQL requires a length on indexes in text fields.
# So, we provide them for mysql and handle everything else specially.
- # Oracle doesn't index on CLOB fields, so we skip it
+ # Oracle doesn't index on CLOB fields, so we skip it
if Puppet[:dbadapter] == "mysql"
execute "CREATE INDEX typentitle ON resources (restype,title(50));"
elsif Puppet[:dbadapter] != "oracle_enhanced"
@@ -51,10 +51,10 @@ class Puppet::Rails::Schema
t.column :created_at, :datetime
end
- # Oracle automatically creates a primary key index
- if Puppet[:dbadapter] != "oracle_enhanced"
+ # Oracle automatically creates a primary key index
+ if Puppet[:dbadapter] != "oracle_enhanced"
add_index :puppet_tags, :id, :integer => true
- end
+ end
create_table :hosts do |t|
t.column :name, :string, :null => false