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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T00:08:19+00:00 2026-06-09T00:08:19+00:00

am currently working on a rails project. When i tried to start rails server

  • 0

am currently working on a rails project. When i tried to start rails server its throwing the following error:

=> Booting WEBrick
=> Rails 3.1.3 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/var/lib/gems/1.9.1/gems/activerecord-3.1.3/lib/active_record/connection_adapters      
/sqlite_adapter.rb:439:in `table_structure': Could not find table 'dbrick'   
(ActiveRecord::StatementInvalid)

My table name is ‘dbrick’. I also Tried to rake db:drop and rake db:mirgrate. While migrating its throwing the following error:

rake aborted!
Could not find table 'dbrick'

Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)

This is my migrate file:

class CreateDbricks < ActiveRecord::Migration
def self.up
  create_table :dbricks do |t|
    t.text :description
    t.string :video
    t.string :video_html
    t.string :image_id
    t.string :option_id
    t.boolean :choice
    t.string :reach
    t.integer :category_id
    t.string :user_id
    t.datetime :deleted_at

    t.timestamps
  end
end

 def self.down
   drop_table :dbricks
 end
end

It will be so much help full if any one help me out of this.
Thanks in advance.

  • 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-09T00:08:21+00:00Added an answer on June 9, 2026 at 12:08 am

    I would try :

    rake db:schema:load
    

    To load your schema ( to which I believe its finding the error against your DB ).

    If that fails, I would manually find the migration that creates your dbrick, locate the name of the file and copy and paste the number in the filename to produce this :

    rake db:migrate:down VERSION=123412341234 # <-- where the number is the number you pasted
    

    Look for errors. Occasionally one thing exists already, or doesn’t exist already and prevents the migration from running all the way, and consequentially that would be the source of your error. If it goes successfully then rake it back up :

    rake db:migrate:up VERSION=123412341234 # <-- where the number is the number you pasted
    

    If it doesn’t go successfully, then you’ll have to put on your miner’s helmet, and get your hands dirty with :

    rails dbconsole
    

    Which will take you into your database and you’ll have to manually delete whatever table/column is preventing the migration from occurring. Once that is fixed, exit out and rake db:migrate:up!

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

Sidebar

Related Questions

Hi Currently i am working on a rails project . where i have to
I'm currently working on a project in Ruby on Rails (in Eclipse) and my
Hello Ruby/Rails/Merb developers! Im currently working on a web project that will have a
im working in a project writen in ruby on rails and im currently using
Background Currently, I am working on a Rails application. I have different products that
I am currently working on a project to internationalize one of our ruby-on-rails web
we are currently working on a rails project that uses i18n and we have
Currently I'm working on a Rails project, where I keep on constantly switching between
I'm currently working on a hobby project in Rails, and stumbled upon a what
Currently I am working on project like web analytic using rails 3.2.3 I have

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.