refactor: remove active column from cities table
Some checks failed
CI / scan_ruby (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled
Docker / docker (push) Has been cancelled

- Eliminate the 'active' column from the 'cities' table

This change streamlines the database schema and reduces
unnecessary fields, which may improve performance in
queries and data manipulation related to the cities table.
This commit is contained in:
songtianlun 2025-02-08 17:58:01 +08:00
parent ddfd1fa807
commit 9df9f2cd91

View File

@ -29,6 +29,5 @@ class MigrateWithCountriesStatesCitiesDatabase < ActiveRecord::Migration[8.0]
add_column :cities, :country_code, :string add_column :cities, :country_code, :string
add_column :cities, :flag, :boolean, default: true add_column :cities, :flag, :boolean, default: true
add_column :cities, :wiki_data_id, :string add_column :cities, :wiki_data_id, :string
add_column :cities, :active, :boolean, default: false
end end
end end