RailsApps / rails-stripe-membership-saas

An example Rails 4.2 app with Stripe and the Payola gem for a membership or subscription site.
http://railsapps.github.io/rails-stripe-membership-saas
1.14k stars 232 forks source link

Failure to seed database in development #92

Closed ghost closed 10 years ago

ghost commented 10 years ago

I have my original rails-stripe-membership-saws app that was originally on rvm ruby 1.9.3. I am moving it up to ruby 2.0.0. When I seed the db I get the following. Is this the error that was referred to in the older version of Composer? My original Composer file was from August 2013.

ruby-2.0.0-p247@hg marks-air:hg mark$ rake db:seed --trace * Invoke db:seed (first_time) * Execute db:seed * Invoke db:abort_if_pending_migrations (first_time) * Invoke environment (first_time) * Execute environment * Invoke db:load_config (first_time) * Execute db:load_config * Execute db:abort_if_pending_migrations ROLES rake aborted! no implicit conversion of nil into String /Users/mark/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/psych.rb:205:in parse' /Users/mark/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/psych.rb:205:inparse_stream' /Users/mark/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/psych.rb:153:in parse' /Users/mark/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/psych.rb:129:inload' /Users/mark/Documents/projects/hosting/hg/db/seeds.rb:11:in <top (required)>' /Users/mark/.rvm/gems/ruby-2.0.0-p247@hg/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:inload' /Users/mark/.rvm/gems/ruby-2.0.0-p247@hg/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in block in load' /Users/mark/.rvm/gems/ruby-2.0.0-p247@hg/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:inload_dependency' /Users/mark/.rvm/gems/ruby-2.0.0-p247@hg/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in load' /Users/mark/.rvm/gems/ruby-2.0.0-p247@hg/gems/railties-3.2.13/lib/rails/engine.rb:520:inload_seed' /Users/mark/.rvm/gems/ruby-2.0.0-p247@hg/gems/activerecord-3.2.13/lib/active_record/railties/databases.rake:347:in block (2 levels) in <top (required)>' /Users/mark/.rvm/gems/ruby-2.0.0-p247@global/gems/rake-10.1.0/lib/rake/task.rb:236:incall' /Users/mark/.rvm/gems/ruby-2.0.0-p247@global/gems/rake-10.1.0/lib/rake/task.rb:236:in block in execute' /Users/mark/.rvm/gems/ruby-2.0.0-p247@global/gems/rake-10.1.0/lib/rake/task.rb:231:ineach' /Users/mark/.rvm/gems/ruby-2.0.0-p247@global/gems/rake-10.1.0/lib/rake/task.rb:231:in execute' /Users/mark/.rvm/gems/ruby-2.0.0-p247@global/gems/rake-10.1.0/lib/rake/task.rb:175:inblock in invoke_with_call_chain' /Users/mark/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/monitor.rb:211:in mon_synchronize' /Users/mark/.rvm/gems/ruby-2.0.0-p247@global/gems/rake-10.1.0/lib/rake/task.rb:168:ininvoke_with_call_chain' /Users/mark/.rvm/gems/ruby-2.0.0-p247@global/gems/rake-10.1.0/lib/rake/task.rb:161:in invoke' /Users/mark/.rvm/gems/ruby-2.0.0-p247@global/gems/rake-10.1.0/lib/rake/application.rb:149:ininvoke_task' /Users/mark/.rvm/gems/ruby-2.0.0-p247@global/gems/rake-10.1.0/lib/rake/application.rb:106:in block (2 levels) in top_level' /Users/mark/.rvm/gems/ruby-2.0.0-p247@global/gems/rake-10.1.0/lib/rake/application.rb:106:ineach' /Users/mark/.rvm/gems/ruby-2.0.0-p247@global/gems/rake-10.1.0/lib/rake/application.rb:106:in block in top_level' /Users/mark/.rvm/gems/ruby-2.0.0-p247@global/gems/rake-10.1.0/lib/rake/application.rb:115:inrun_with_threads' /Users/mark/.rvm/gems/ruby-2.0.0-p247@global/gems/rake-10.1.0/lib/rake/application.rb:100:in top_level' /Users/mark/.rvm/gems/ruby-2.0.0-p247@global/gems/rake-10.1.0/lib/rake/application.rb:78:inblock in run' /Users/mark/.rvm/gems/ruby-2.0.0-p247@global/gems/rake-10.1.0/lib/rake/application.rb:165:in standard_exception_handling' /Users/mark/.rvm/gems/ruby-2.0.0-p247@global/gems/rake-10.1.0/lib/rake/application.rb:75:inrun' /Users/mark/.rvm/gems/ruby-2.0.0-p247@global/gems/rake-10.1.0/bin/rake:33:in <top (required)>' /Users/mark/.rvm/gems/ruby-2.0.0-p247@global/bin/rake:23:inload' /Users/mark/.rvm/gems/ruby-2.0.0-p247@global/bin/rake:23:in `

' Tasks: TOP => db:seed

Austio commented 10 years ago

Have you ran your initial migration? If so could you paste your seed?

ghost commented 10 years ago

Was a composer issue. I cloned the app from GitHub instead and it worked fine.