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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T22:29:51+00:00 2026-05-19T22:29:51+00:00

rake db:schema:dump rake db:test:prepare All use the following generated schema.rb: t.column cost_per_license, :decimal, :limit

  • 0

rake db:schema:dump
rake db:test:prepare

All use the following generated schema.rb:

t.column “cost_per_license”, :decimal, :limit => 8, :default => #

Running rake db:migrate does not cause this problem as it only uses the migration files (and not the resulting schema.rb)

Has anyone seen this in Rails 1.2? The following lines are generating this schema:

126_create_accounts.rb: t.column :cost_per_license, :decimal, :precision => 8, :scale => 2, :default => 0

I have tried Ruby 1.8.6, 1.8.7, and Rails 1.2.1, and 1.2.6 — all schema.rb’s generated have this same syntax error.

  • 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-19T22:29:52+00:00Added an answer on May 19, 2026 at 10:29 pm

    Figured it out:

    There was a vendor/plugin (specifically spatial_adapter) that was monkey patching the SchemaDumper’s table() function with a terribly old version of ActiveRecord’s table() (either really old, or just really awful.)

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

Sidebar

Related Questions

When running rake db:schema:dump on an app that uses a postgres schema (i.e. schema_name.users),
The following rake command doesn't work rake db:schema:dump /Library/Ruby/Gems/1.8/gems/bundler-1.1.4/lib/bundler/runtime.rb:211: warning: Insecure world writable dir
how is it possible to work from rails and use sqlserver views? rake db:schema:dump
I executed the function: rake db:schema:dump and that's whats I got: C:\Users\Oded\sites\simple_cms>rake db:schema:dump (in
I encountered the following error while running rake db:migrate --trace . my rails version
rake db:schema:dump This command gives you the schema of a legacy database and you
Does rake db:schema:dump recreate schema.rb from migrations or the database itself?
Whenever I try to use rake db:schema:load or rake db:migrate, I get keep getting
I am migrating an app from rails 2.3.8 to 3.2.3. The 'rake db:schema:dump' works
I'm migrating my app from MySQL to Postgres. If I do a rake db:schema:load

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.