Uninitialized constant Settings [Rake Error]

So I’ve been scouring the internet (i.e. Stackoverflow) looking for a fix to this bug I keep getting. I wanted to see if you’ve seen this before or had any ideas of what I should try.

I’m working on getting a local dev environment setup, but keep getting an error about “uninitialized constant Settings” when running the rake commands below. Any thoughts?

Rake Commands:

bundle exec rake db:migrate RAILS_ENV=development

bundle exec rake db:seed RAILS_ENV=development

Error Message:

/Users/MansiPathak/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-3.2.12/lib/active_support/values/time_zone.rb:270: warning: circular argument reference - now

wcai-projects already exists

rake aborted!

uninitialized constant Settings

/Users/MansiPathak/wcai-web/config/initializers/carrier_wave.rb:4:in `block in <top (required)>’

/Users/MansiPathak/wcai-web/config/initializers/carrier_wave.rb:1:in `<top (required)>’

/Users/MansiPathak/wcai-web/config/environment.rb:5:in `<top (required)>’

Tasks: TOP => db:setup => db:schema:load_if_ruby => environment

(See full trace by running task with --trace)

Thanks!

Looks like this might be specific to your own code base. You are using Settings constant somewhere and its not loaded in your initializers.

Find the file where Settings is defined, ideally should be settings.rb somewhere in your lib or config directory and load in the right place and you should be good.

This is not a Rails bug and this group is for Rails bugs and contribution related discussions. So please you the rubyonrails-talk group, stackoverflow or irc for such questions

Best,

Rishav

Probably need a “settings.yml” file. It is listed in your .gitignore file.