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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T11:30:17+00:00 2026-06-10T11:30:17+00:00

I wanted to play around with a single table inheritance approach in one of

  • 0

I wanted to play around with a single table inheritance approach in one of my tables. So i created a new git branch (for obvious reasons 🙂 and created the STI for the table. Now when I switch back to my master branch for running some other tests, i get the single table inheritance error:

“The single-table inheritance mechanism failed to locate the subclass:’xxx’. This error is raised because the column ‘type’ is reserved for storing the class in case of inheritance. Please rename this column if you didn’t intend it to be used for storing the inheritance class or overwrite Transaction.inheritance_column to use another column for that information.”

My question being, how do I make the STI isolated to only one branch? I thought going by the branching approach, it would not create problems in my master branch. Please advice!

  • 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-10T11:30:19+00:00Added an answer on June 10, 2026 at 11:30 am

    Your DB will change if you’re using STI.

    MySQL itself isn’t under git–you need to make sure the DB is in sync with your current branch.

    Options include:

    • Creating a new, branch-specific DB, and modifying the default environments in your DB config.
    • Blowing away the DB and re-creating using migrations/dump/etc. and reloading any initial data.

    I’ve tended towards the first (branch-specific DB) because it’s a simple config file change (which is under source control) and the migrations are simple, and branch-specific. You might need to remember to delete the additional DBs when you remove a branch (or write a script that does both at the same time).

    There are likely other solutions, hopefully people will edit this answer and include them.

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

Sidebar

Related Questions

I'm brand new to node.js, but I wanted to play around with some basic
I wanted to play around with my Total_Sales table. This is how the data
I'm just starting to play around with GTK+ and I wanted to stop bad
I just wanted to play around with the jdk . Like changing the implementation
I never used ruby before, I just wanted to play around with HAML and
I'm brand spanking new to WPF and am trying to play around with projects
Ok so I wanted to play around with CCBlade https://github.com/hiepnd/CCBlade and in the installation
I'm playing around with redis and wanted to recreate a table I have in
I wanted to play around with Linux and do some testing. I've tried installing
I just wanted to play around with WPF SpellCheck a little, but although the

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.