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

why constraint not working in seed_fu file? #128

Open
LongLonghaoran opened this issue Jun 3, 2018 · 0 comments
Open

why constraint not working in seed_fu file? #128

LongLonghaoran opened this issue Jun 3, 2018 · 0 comments

Comments

@LongLonghaoran
Copy link

I wrote a seed_fu file like this:

Privilege.seed(:school_id, :p_object, :p_action,
             {school_id: 16, p_object: "repair", p_action: "applyable"},
             {school_id: 16, p_object: "repair", p_action: "editable"}
             ...
) 

but when i run rake db:seed_fu FILTER=privilege repeatedly, it create the same records again,the constraint not work, otherwise the constraint is worked on rails console. is anyone who can help me?thank you

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