내 테이블 중 하나에서 단일 테이블 상속 접근법으로 놀고 싶었습니다. 그래서 나는 새로운 git 브랜치 (명백한 이유로 :)를 만들고 테이블에 대한 STI를 만들었다. 나는 STI는 하나 개의 지점에 고립 어떻게해야합니까,단일 테이블 상속과의 분기 충돌
"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."
내 질문의 존재 : 지금은 다른 테스트를 실행하는 내 마스터 브랜치로 전환 할 때, 나는 하나의 테이블 상속 오류가? 나는 분기 방식으로 가고 있다고 생각했다. 그것은 내 마스터 브랜치에서 문제를 일으키지 않을 것이다. 제발 조언!
repo에있는 모든 git 브랜치가 동일한 데이터베이스에 연결됩니다. 따라서 한 브랜치에서 마이 그 레이션을 사용하여 테이블에'type' 컬럼을 추가하면이 컬럼은 마스터 브랜치로 다시 전환 할 때 사용할 수 있습니다. – tdgs