Project Bass Music, rake aborted unknown attribute

when I type rake db:seedling, I receive following message in Comand Line
rake aborted
ActiveRecord: :UnknownAttributeError: unknownatribute ‘artist’ Album

Hi @igor644,

Was the Codecademy Advisor able to help you?

1 Like

Not anyone yet
I need the best one.
But may be someone had the similar problem

Could you please post the contents of your db/seeds.rb file?

2 Likes

Try adding this line to db/migrate/20170927175326_create_albums.rb:

t.has_many :tracks 
1 Like

I will try of couse, but I have simething like this

1 Like

1 Like
1 Like

rake aborted ------ unknown attribute ‘artist’ Album

1 Like

bug was in schema
I misspell in the very beginning actor insteed artist
than change it
but in the shema.rb rhis was not changed
so uncnown atribut artist
probably program tramslate in lower laguages by the help of the schema.rb
Farish find it

3 Likes

This topic is solved.