When i am trying to run rake db:migrate
in my rails I get this error:
rake aborted ! name error uninitialized constant Rails :: API :: Rdoc
I am a newbie in the ruby on rails I was following the youtube tutorial to build a web blog application: https://www.youtube.com/watch?v=BI_VnnOLSKY
but in the video it runs rake db just fine, i am so confused why I got rake aborted error in the command prompt, the migration file code is:
class CreatePosts < ActiveRecord::Migration
def change
create_table :posts do |t|
t.string :title
t.text :body
t.timestamps
end
end
end
would you please help me with this?