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

Database dev #4

Merged
merged 13 commits into from
Sep 26, 2024
Merged

Database dev #4

merged 13 commits into from
Sep 26, 2024

Conversation

tzhao-ooc
Copy link
Collaborator

@tzhao-ooc tzhao-ooc commented Sep 25, 2024

Connected db via URL, Create Schemas

Database connection steps:

  • run bundle install

Check Schemas

Users, Clubs, Categories, EvnetTypes, Event are created, you can check schemas in either superbase or db/schema.rb

Insert data for testing

  • using rails console

rails console
User.create(name: "John Doe", email: "[email protected]")

  • using db/seeds.rb

see seeds.rb for examples
run rails db:seed
knowing issue: may raise error : ActiveRecord::StatementInvalid: PG::DuplicatePstatement: ERROR: prepared statement "a1" already exists.
comment all previous insertions helps

  • insert via superbase

@AndyZzzZzzZzz AndyZzzZzzZzz merged commit b326db0 into main Sep 26, 2024
4 checks passed
AndyZzzZzzZzz pushed a commit that referenced this pull request Sep 28, 2024
* dev_dev_1

Setup db connection, and create schemas

* Fix lint error

* db_dev_fix_lint_issue

* db_dev_fix_test_err

* db_dev_CI_test_fix

* db_dev_CI_test_fix

* db_dev_CI_test_fix

* db_dev_CI_test_fix

* db_dev_CI_test_fix

* db_dev_fix_test_error

* Update ci.yml

* Update ci.yml
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.

3 participants