Created
September 19, 2017 17:15
-
-
Save jpletner/5b93c51f92aad9628ffa7ef21bbf2e79 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
site_pi = User.new(user_role: UserRole.find_by(permanent_link: "site_pi"), email: "[email protected]") | |
site = CrTrials::Site.find_by(name: "LMC Clinical Research Inc. (Oakville)") | |
site_pi.cr_trials_sites_users.build(cr_trials_site: site) | |
site_pi.build_profile | |
site_pi.skip_confirmation! | |
site_pi.invite! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment