Go to file
songtianlun 27100aec24 fix: improve country creation logic
- Change method from find_or_create_by to find and check for nil
- Initialize a new Country object only if none exists

This fix addresses the potential issue where a country
is being unnecessarily created instead of found, improving
the efficiency of the country data synchronization process.
This change also adds clarity to the method's intent by
clearly separating the find and the initialization logic.
2025-02-10 17:07:48 +08:00
.github refactor: consolidate Docker build process 2025-02-02 00:44:36 +08:00
.kamal init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
app migrate with countries_states_cities_db 2025-02-08 17:42:50 +08:00
bin init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
config migrate with countries_states_cities_db 2025-02-08 17:42:50 +08:00
db chore: update AWS SDK dependencies and improve schema 2025-02-10 14:43:34 +08:00
lib fix: improve country creation logic 2025-02-10 17:07:48 +08:00
log init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
public feat: implement ads.txt configuration 2025-01-24 09:14:13 +08:00
script init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
storage init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
test migrate with countries_states_cities_db 2025-02-08 17:42:50 +08:00
tmp init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
vendor init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
.dockerignore init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
.gitattributes init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
.gitignore fix: update default host in sitemap generator and refresh sitemap on worker 2025-01-23 19:40:08 +08:00
.node-version init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
.rubocop.yml init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
.ruby-version init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
compose.yaml chore: update docker compose file 2025-01-23 17:44:03 +08:00
config.ru init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
Dockerfile chore: update dependencies in Dockerfile and Gemfile 2025-02-05 14:53:54 +08:00
Gemfile chore: update AWS SDK dependencies and improve schema 2025-02-10 14:43:34 +08:00
Gemfile.lock chore: update AWS SDK dependencies and improve schema 2025-02-10 14:43:34 +08:00
package.json feat: add photo swipe lightbox functionality 2025-02-01 14:19:19 +08:00
Procfile.dev init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
Rakefile init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
README.md init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
tailwind.config.js feat: add font styling and enhance city views 2025-01-20 18:02:28 +08:00
yarn.lock feat: add photo swipe lightbox functionality 2025-02-01 14:19:19 +08:00

README

This README would normally document whatever steps are necessary to get the application up and running.

Things you may want to cover:

  • Ruby version

  • System dependencies

  • Configuration

  • Database creation

  • Database initialization

  • How to run the test suite

  • Services (job queues, cache servers, search engines, etc.)

  • Deployment instructions

  • ...