HeavyTechRuby / history

History of every building
GNU General Public License v3.0
7 stars 8 forks source link

Не удается выкатить обновление на сервер #98

Closed sergio-fry closed 2 months ago

sergio-fry commented 3 months ago

В рамках #88 мы добавили обязательное поле stories.location_id, однако, сейчас на сервере уже есть stories. Поэтому выкатка падает с ошибкой:

remote:        /rails/db/migrate/20240617092015_add_location_reference_to_story.rb:3:in `change'        
remote:        Caused by:        
remote:        ActiveRecord::NotNullViolation: PG::NotNullViolation: ERROR:  column "location_id" of relation "stories" contains null values (ActiveRecord::NotNullViolation)        
remote:        /rails/db/migrate/20240617092015_add_location_reference_to_story.rb:3:in `change'        
remote:        Caused by:        
remote:        PG::NotNullViolation: ERROR:  column "location_id" of relation "stories" contains null values (PG::NotNullViolation)        
remote:        /rails/db/migrate/20240617092015_add_location_reference_to_story.rb:3:in `change'        
remote:        Tasks: TOP => db:prepare        

https://github.com/HeavyTechRuby/history/actions/runs/10128962071/job/28008472910