Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DefaultTableNameHandler bug #6

Open
robinxiong opened this issue Jan 27, 2018 · 0 comments
Open

DefaultTableNameHandler bug #6

robinxiong opened this issue Jan 27, 2018 · 0 comments

Comments

@robinxiong
Copy link

robinxiong commented Jan 27, 2018

func New(db *gorm.DB) *Publish {} 方法中直接修改了DefaultTableNameHandler, 当我在删除带有Status的model是,它直接产生了关联表, 可不可以只在调用Automigrate的时,在生成_draft, 因为只要使用了获取表名字,它都会调用到修改后DefaultTableNameHandler

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant