Set the default organization user's status to active in the seed script (#242)

This commit is contained in:
Ashish 2021-06-13 19:25:15 +05:30 committed by GitHub
parent 2a0867608f
commit d5d3c8e81e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
org = Organization.create(name: 'My organization')
user = User.create(first_name: 'The', last_name: 'Developer', email: 'dev@tooljet.io', password: 'password', organization: org)
OrganizationUser.create(user: user, organization: org, role: 'admin')
OrganizationUser.create(user: user, organization: org, role: 'admin', status: 'active')