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

数据问题 #12

Open
python-yu opened this issue Apr 19, 2018 · 4 comments
Open

数据问题 #12

python-yu opened this issue Apr 19, 2018 · 4 comments

Comments

@python-yu
Copy link

rake aborted!
ActiveRecord::NoDatabaseError: FATAL: role "python" does not exist

@PENGZhaoqing
Copy link
Owner

@python-yu
Copy link
Author

我知道我错哪里了,谢谢你

@python-yu
Copy link
Author

管理员登录的账号和密码,可以给吗?

@PENGZhaoqing
Copy link
Owner

PENGZhaoqing commented Apr 20, 2018

这个是你自己设置的,seed文件里,admin=true就是管理员

User.create(
    name: "彭兆卿",
    email: "[email protected]",
    password: "password",
    password_confirmation: "password",
    admin: true
)

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

2 participants