Rake db:migrate gives duplicate column name

I'm trying to install Foreman on a Centos 5.2 with puppet 0.24.7.
The installation is done with the rpms on the install page (http://
theforeman.org/repo/el5/noarch/foreman-0.1.5-1.noarch.rpm)

When I run RAILS_ENV=production rake db:migrate i get the following
result:

(in /usr/share/foreman)
== CreateHosts: migrating

··· ==================================================== == AddCreatedAtToAllTables: migrating ======================================== -- add_column("schema_migrations", :created_at, :datetime) -> 0.0005s == AddCreatedAtToAllTables: migrated (0.0103s) ===============================

== RemoveDuplicatedIndexOnAllTables: migrating

== RemoveDuplicatedIndexOnAllTables: migrated (0.0055s)

== AddEnvironmentToHost: migrating

– add_column(:hosts, :environment, :string)
rake aborted!
An error has occurred, this and all later migrations canceled:

Could not migrate database: An error has occurred, this and all later
migrations canceled:

SQLite3::SQLException: duplicate column name: environment: ALTER TABLE
"hosts" ADD “environment” varchar(255)

Does anyone now how to fix it?