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

When I run this code the selected item is not visible. I've already tried
I reloaded an old project, and tried to run it only to run into
I've written a Java applet . A user reports that he tried to run
I tried recently to use NAnt (beta 0.86.2962.0) to run some unit tests compiled
I tried to package a Twisted program with py2exe, but once I run the
Anyone who has tried to implement RoutedCommands in WPF using M-V-VM has undoubtedly run
Tried something like this: HttpApplication app = s as HttpApplication; //s is sender of
I've tried to run my app on a Nexus-One-like emulator skin and a Galaxy-Tab-like.
I have some update or something that tries to run every night, and ends
I'm trying to run an interactive command through paramiko. The cmd execution tries to

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.