Project Bass Music, rake aborted unknown attribute


#1

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


#2

Hi @igor644,

Was the Codecademy Advisor able to help you?


#3

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


#4

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


#5

#6

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

t.has_many :tracks 

#7

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


#8


#9

#10

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


#11

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


#12

This topic is solved.