Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7852727
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T19:29:32+00:00 2026-06-02T19:29:32+00:00

I added a new column called level to my table called ClassRequest, ran a

  • 0

I added a new column called level to my table called ClassRequest, ran a rake db:migrate on localhost and the view worked perfectly. Pushed the changes to heroku and the view met an error “NoMethodError: undefined method `level’ for #”

So I ran heroku run rake db:migrate and that appears to be successful, showing the codes below.

Running rake db:migrate attached to terminal... up, run.1
==  AddDetailsToClassRequests: migrating ======================================
-- add_column(:class_requests, :level, :string)
   -> 0.0684s
==  AddDetailsToClassRequests: migrated (0.0713s) =============================

But when I load the associated view, I still have this error “NoMethodError: undefined method `level’ for #”.

I’m new to rails so I don’t know what’s wrong, nor how do I know how to check what may have gone wrong.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T19:29:33+00:00Added an answer on June 2, 2026 at 7:29 pm
    heroku restart
    

    Check the heroku’s docs: https://devcenter.heroku.com/articles/rake

    After running a migration you’ll want to restart your app with heroku
    restart to reload the schema and pickup any schema changes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I added a new column to a table called price_request_date because I now need
I have recently added a new column (age) to a database table (user). I
I have a table that I added a column called phone - the table
I recently added a new column called auth_token to my users which is suppose
I have a model called shipments. I added some columns to the shipments table
There is a constant change (!) in our database, new columns are often added.
I removed my .gitconfig by accident. I added new identies by git add [file]
I added a new file F1 and made changes to another file F2 but
I added a new field to a stored procedure. How do I get it
I added a new subdir within my git respository: git add feeds Then commited

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.