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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T18:56:36+00:00 2026-06-05T18:56:36+00:00

Postgres 9.0.4 Rails 3.0.7 AR 3.0.7 pg 0.12.2 I have a table with 3

  • 0
Postgres 9.0.4
Rails 3.0.7
AR 3.0.7
pg 0.12.2

I have a table with 3 records in it with DATE column values of ‘0001-01-01 BC’ (not sure how they got in there in the first place, there is no default value set on the column).

When I request these records and then query for this date column value through ActiveRelation, they return nil, but they are actually NOT NULL in the database.

See:

[3] pry(main)> User.where(birthday: '0001-01-01 BC').map {|u| u.birthday}
=> [nil, nil, nil]

Anyone seen anything like this or have any idea what’s going on here?

Thanks,
Wes

  • 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-05T18:56:37+00:00Added an answer on June 5, 2026 at 6:56 pm

    This looks like an issue that was fixed with this pull request. Updating rails should solve your problem.

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

Sidebar

Related Questions

I have a Rails app using a Postgres database with a table called geolite_blocks.
I'm working on rails application with postgres db.I have a table called merchant_review_votes where
I have a Rails + Apache2 + Postgres + Passenger application running in production
I currently have a Postgres 8.4 database that contains a varchar(10000) column. I'd like
I am a newbie in postgres. I have a column named host (string varchar2)
I have a column with the type of Varchar in my Postgres database which
I'm relying on the id field of postgresql records not changing in a rails
I have Rails app with a Postgres backend. I need to add full text
I have a rails app using postgres and hosting on heroku. I 'm trying
I have a rails app that runs on Heroku using their standard postgres database

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.