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

New No-Code Track! 🚀 New videos dropping every week—start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Community Projects
    • Live Sessions
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Community Projects Live Sessions Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • 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
  • 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.

    Treehouse

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

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.