Pls try out this heroku:rake:db:seed
On 08/11/11 3:16 AM, "slava" wrote:

hello,
I am trying to deploy a rails 3.1 app to Heroku and need to run
db:seed
My seeds file has this code

User.seed do |s|
s.email = "temp@temp.com"
s.password = "bigsecret"
s.password_confirmation = "bigsecret"
end

Running rake db:seed locally works fine, but after deployment to
Heroku I try to run this seed file and get error:

undefined method `seed' for #<Class:0x00000006499ac0>

Any ideas why Heroku does not like my seed file?

thanks

--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 5 | next ›
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedNov 7, '11 at 9:47p
activeNov 9, '11 at 6:06p
posts5
users2
websiterubyonrails.org
irc#RubyOnRails

People

Translate

site design / logo © 2021 Grokbase