Skip to main content

🛍️ BLACK FRIDAY get-one-give-one sale is underway. Don't miss $50 off PLUS a free subscription to gift a friend. 🤩

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

Join the Treehouse affiliate program and earn 25% recurring commission! 🤑

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
      • • Vibe Coding
  • Quynh To Tuan
    Quynh To Tuan
    8,192 Points

    How can Employee#total_hours use 'time_entries' although this table was renamed to 'account_entries'?

    Posted May 8, 2017 12:01pm by Quynh To Tuan
    Quynh To Tuan
    8,192 Points
    • Ruby
    • ActiveRecord Basics
    • Migrations and Relationships
    • Single Table Inheritance

    0 Answers

  • Peter Lawless
    Peter Lawless
    24,404 Points

    How does Rails know to filter on :type with this single table inheritance example?

    Posted November 28, 2016 2:52am by Peter Lawless
    Peter Lawless
    24,404 Points
    • Ruby
    • ActiveRecord Basics
    • Migrations and Relationships
    • Single Table Inheritance

    0 Answers

  • Robert Ellefson
    Robert Ellefson
    5,672 Points

    Error message for c.time_entries

    Posted March 1, 2016 2:27am by Robert Ellefson
    Robert Ellefson
    5,672 Points
    • Ruby
    • ActiveRecord Basics
    • Migrations and Relationships
    • Single Table Inheritance

    1 Answer

  • BEAU WITKA
    BEAU WITKA
    20,594 Points

    'Customer' and 'Employee' not inheriting from 'Account'

    Posted November 30, 2015 8:21pm by BEAU WITKA
    BEAU WITKA
    20,594 Points
    • Ruby
    • ActiveRecord Basics
    • Migrations and Relationships
    • Single Table Inheritance

    2 Answers

  • BEAU WITKA
    BEAU WITKA
    20,594 Points

    'drop table' not migrating when I run 'rake db:migrate' (6:30)

    Posted November 30, 2015 8:03pm by BEAU WITKA
    BEAU WITKA
    20,594 Points
    • Ruby
    • ActiveRecord Basics
    • Migrations and Relationships
    • Single Table Inheritance

    1 Answer

  • BEAU WITKA
    BEAU WITKA
    20,594 Points

    why does 't.timestamps' not include 'null :false' in video? (2:30)

    Posted November 30, 2015 7:32pm by BEAU WITKA
    BEAU WITKA
    20,594 Points
    • Ruby
    • ActiveRecord Basics
    • Migrations and Relationships
    • Single Table Inheritance

    1 Answer

  • Michael Hall
    PLUS
    Michael Hall
    Courses Plus Student 30,909 Points

    Can someone explain why we can't add the type during the migration.

    Posted October 28, 2015 7:05pm by Michael Hall
    Michael Hall
    Courses Plus Student 30,909 Points
    • Ruby
    • ActiveRecord Basics
    • Migrations and Relationships
    • Single Table Inheritance

    2 Answers

  • Stewart Horsfield
    Stewart Horsfield
    13,293 Points

    **FIX** El Capitan upgrade breaks mysql / rails server

    Posted October 2, 2015 5:57am by Stewart Horsfield
    Stewart Horsfield
    13,293 Points
    • Ruby
    • ActiveRecord Basics
    • Migrations and Relationships
    • Single Table Inheritance

    1 Answer

  • Fenian Noakes
    PLUS
    Fenian Noakes
    Courses Plus Student 5,212 Points

    NameError: uninitialized constant AccountEntry

    Posted September 18, 2015 7:14am by Fenian Noakes
    Fenian Noakes
    Courses Plus Student 5,212 Points
    • Ruby
    • ActiveRecord Basics
    • Migrations and Relationships
    • Single Table Inheritance

    0 Answers

  • Travis Eubanks
    Travis Eubanks
    12,566 Points

    log_time(amount, customer)? Not making sense.

    Posted June 2, 2015 6:47pm by Travis Eubanks
    Travis Eubanks
    12,566 Points
    • Ruby
    • ActiveRecord Basics
    • Migrations and Relationships
    • Single Table Inheritance

    1 Answer

  • John Simoneau
    PLUS
    John Simoneau
    Courses Plus Student 8,105 Points

    Forgot to add a part of RemoveOldTables :(

    Posted May 30, 2015 4:53am by John Simoneau
    John Simoneau
    Courses Plus Student 8,105 Points
    • Ruby
    • ActiveRecord Basics
    • Migrations and Relationships
    • Single Table Inheritance

    0 Answers

  • Binu Alexander
    Binu Alexander
    4,081 Points

    Single table inheritance ?

    Posted May 14, 2015 6:21am by Binu Alexander
    Binu Alexander
    4,081 Points
    • Ruby
    • ActiveRecord Basics
    • Migrations and Relationships
    • Single Table Inheritance

    4 Answers

  • Michael Baker
    Michael Baker
    5,709 Points

    Error on a.type = "Customer"

    Posted April 29, 2015 5:43pm by Michael Baker
    Michael Baker
    5,709 Points
    • Ruby
    • ActiveRecord Basics
    • Migrations and Relationships
    • Single Table Inheritance

    6 Answers

  • Harrison Hondo
    Harrison Hondo
    7,283 Points

    Error when typing Employee.first into console

    Posted April 1, 2015 4:27am by Harrison Hondo
    Harrison Hondo
    7,283 Points
    • Ruby
    • ActiveRecord Basics
    • Migrations and Relationships
    • Single Table Inheritance

    1 Answer

  • Chris Vukin
    Chris Vukin
    17,787 Points

    total_time not working

    Posted February 1, 2015 4:43am by Chris Vukin
    Chris Vukin
    17,787 Points
    • Ruby
    • ActiveRecord Basics
    • Migrations and Relationships
    • Single Table Inheritance

    2 Answers

  • John Cunningham
    John Cunningham
    8,665 Points

    irb vs rails c

    Posted January 28, 2015 6:24pm by John Cunningham
    John Cunningham
    8,665 Points
    • Ruby
    • ActiveRecord Basics
    • Migrations and Relationships
    • Single Table Inheritance

    2 Answers

  • Sebastian Velandia
    Sebastian Velandia
    24,676 Points

    How to add different fields beetween Employees and customers?

    Posted December 12, 2014 2:52am by Sebastian Velandia
    Sebastian Velandia
    24,676 Points
    • Ruby
    • ActiveRecord Basics
    • Migrations and Relationships
    • Single Table Inheritance

    1 Answer

  • Adam Zuckerberg
    Adam Zuckerberg
    22,248 Points

    How is Hampton Catlin so freaking awesome?

    Posted December 11, 2014 7:06pm by Adam Zuckerberg
    Adam Zuckerberg
    22,248 Points
    • Ruby
    • ActiveRecord Basics
    • Migrations and Relationships
    • Single Table Inheritance

    2 Answers

  • Nikola Novakovic
    Nikola Novakovic
    4,171 Points

    Can not find rename table method

    Posted November 18, 2014 10:06pm by Nikola Novakovic
    Nikola Novakovic
    4,171 Points
    • Ruby
    • ActiveRecord Basics
    • Migrations and Relationships
    • Single Table Inheritance

    1 Answer

  • Peaches Stubbs
    Peaches Stubbs
    21,320 Points

    Accessing a project, that I have already started.

    Posted September 12, 2014 3:05pm by Peaches Stubbs
    Peaches Stubbs
    21,320 Points
    • Ruby
    • ActiveRecord Basics
    • Migrations and Relationships
    • Single Table Inheritance

    2 Answers

  • David Gross
    David Gross
    19,443 Points

    ActiveRecord Basics - TimeEntry model relationship

    Posted July 22, 2014 9:53am by David Gross
    David Gross
    19,443 Points
    • Ruby
    • ActiveRecord Basics
    • Migrations and Relationships
    • Single Table Inheritance

    1 Answer

  • Wesley Wright
    Wesley Wright
    26,793 Points

    So... I think I missed a step, messed something up, or something...

    Posted July 1, 2014 1:59am by Wesley Wright
    Wesley Wright
    26,793 Points
    • Ruby
    • ActiveRecord Basics
    • Migrations and Relationships
    • Single Table Inheritance

    2 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

  • About
  • Blog
  • Community
  • Stories
  • Contact
  • Gift Card

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord