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

ignore_classesを使用時にDB名が渡されるよう修正 #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ymrl
Copy link

@ymrl ymrl commented Jul 17, 2018

SeedSnapshot.dumpignore_classes がありますが、これが動作しませんでした。

SeedSnapshot.dump(ignore_classes: [ActiveRecord::InternalMetadata])

(Rails 5で追加された ar_internal_metadata テーブルが残ってしまうため、これを無視する必要がありました)

Illegal use of option --ignore-table=<database>.<table> 

調査したところ、渡されたクラス名にdb名を付加していなかったために動作しなくなっていたようです。そのため、db名が渡されるよう修正しました。

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

Successfully merging this pull request may close these issues.

2 participants