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 3782998
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T11:09:43+00:00 2026-05-19T11:09:43+00:00

I tried to run rake test:profile and I got this error: … Table ‘mcif2.accounts’

  • 0

I tried to run rake test:profile and I got this error:

... Table 'mcif2.accounts' doesn't exist: DELETE FROM `accounts`

I know accounts doesn’t exist. It’s called account.

I know Rails uses plural table names by default but here’s what my config/environment.rb looks like:

# Load the rails application
require File.expand_path('../application', __FILE__)

# Initialize the rails application
McifRails::Application.initialize!

ActiveRecord::Base.pluralize_table_names = false

And here’s what db/schema.rb looks like:

ActiveRecord::Schema.define(:version => 0) do

  create_table "account", :force => true do |t|
    t.integer   "customer_id",              :limit => 8,                                         :null => false
    t.string    "account_number",                                                                :null => false
    t.integer   "account_type_id",          :limit => 8
    t.date      "open_date",                                                                     :null => false

So I don’t understand why Rails still wants to call it accounts sometimes. Any ideas?

If it helps give any clues at all, here are the results of grep -ir 'accounts' *.

  • 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-05-19T11:09:43+00:00Added an answer on May 19, 2026 at 11:09 am

    My guess is that you’ve named your fixture accounts.yml or used the directive fixtures :accounts in one of the performance test. Rails fill the related table using the fixture name without knowledge about the model.

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

Sidebar

Related Questions

Whenever I run a rake command (i.e. rake routes ) I get this error:
When I try to run rake db:migrate I keep getting this error: rake aborted!
I tried to run this code: #define ROW_CNT 8; #define COLUMN_CNT 24; #define FIRST_COLUMN
This problem was discovered when I tried to run the Android emulator in Eclipse.
I received the following error when I tried to run a C# WinForms application
I keep getting the error saying that the application.css isn't compiled. I tried: rake
Only one line of backtrace is displayed when I run: rake test Output: ...
I'm trying to run a rake test, and when I do, I get the
When I run rake db:migrate for this code http://github.com/jonastryggvi/facebook-rails , I obtain : can't
When I run my app I get this error: config.gem: Unpacked gem rakismet-0.3.6 in

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.