Hello,
I want to build Foreman 1.7 on SLE 12.
I execute following commands;
-
Create a mysql dabase + edit the fiel database.yml
-
bundle install --retry 4 --without sqlite postgresql development test
–path vendor -
RAILS_ENV=production bundle exec rake db:migrate
Output:
= ChangeHostBuildDefaultToFalse: migrating
···
================================== -- change_column(:hosts, :build, :boolean, {:default=>false}) -> 0.0065s rake aborted! StandardError: An error has occurred, all later migrations canceled:uninitialized constant Safemode/home/foreman/foreman/app/models/host/managed
.rb:58:in <class:Managed>' /home/foreman/foreman/app/models/host/managed.rb:1:in
<top (required)>’
…
/home/foreman/foreman/app/models/host.rb:16:in method_missing' ... /home/foreman/foreman/vendor/ruby/2.1.0/gems/activerecord-3.2.21/lib/ active_record/railties/databases.rake:193:in
block (2 levels) in <top
(required)>’
NameError: uninitialized constant Safemode
/home/foreman/foreman/app/models/host/managed.rb:58:in `class:Managed’
Does anybody know this issue and could help me?
Best regards,
Ludwig
My enviroment is:
*** LOCAL GEMS ***
activemodel (4.2.0)
activerecord (4.2.0)
activerecord-mysql-adapter (0.0.1)
activesupport (4.2.0)
arel (6.0.0)
bigdecimal (1.2.4)
builder (3.2.2)
bundler (1.8.3, 1.8.2, 1.7.3)
fast_gettext (0.8.1)
gem2rpm (0.10.1)
i18n (0.7.0)
io-console (0.4.2)
json (1.8.2, 1.8.1)
mini_portile (0.6.2)
minitest (5.5.1, 4.7.5)
mysql (2.9.1)
nokogiri (1.6.6.2)
psych (2.0.5)
rake (10.1.0)
rdoc (4.1.0)
ruby-dbus (0.9.3)
ruby2ruby (2.1.3)
ruby_parser (3.6.4)
rubygems-update (2.4.6)
safemode (1.2.2)
sexp_processor (4.4.5)
suse-connect (0.2.14)
test-unit (2.1.2.0)
thread_safe (0.3.4)
tzinfo (1.2.2)
and
rpm -qa|grep -i ruby
ruby2.1-rubygem-ruby-dbus-0.9.3-3.6.x86_64
libruby2_1-2_1-2.1.2-6.1.x86_64
ruby2.1-devel-2.1.2-6.1.x86_64
ruby2.1-stdlib-2.1.2-6.1.x86_64
ruby-common-2.1-12.1.noarch
yast2-ruby-bindings-3.1.24-1.8.x86_64
ruby2.1-rubygem-fast_gettext-0.8.1-2.9.x86_64
ruby2.1-rubygem-bundler-1.7.3-1.2.x86_64
ruby2.1-rubygem-gem2rpm-0.10.1-2.1.x86_64
ruby-2.1-1.6.x86_64
ruby2.1-rubygem-suse-connect-0.2.14-1.1.x86_64
libstorage-ruby-2.25.16-1.1.x86_64
ruby2.1-2.1.2-6.1.x86_64