diff --git a/db/seeds.rb b/db/seeds.rb index f8667595..7533eb3a 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -1,5 +1,9 @@ # frozen_string_literal: true +# https://github.com/rails/rails/issues/29112 +Rails.application.eager_load! +ActiveRecord::Base.descendants.each(&:reset_column_information) + # This file should contain all the record creation needed to seed the database with its default values. # The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup). diff --git a/docker-compose.yml b/docker-compose.yml index 4fe74feb..5770a081 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -64,14 +64,14 @@ services: environment: - PSQL_HISTFILE=/root/log/.psql_history ports: - - "5432:5432" + - 5432 redis: image: redis:3.2-alpine volumes: - redis:/data ports: - - "6379:6379" + - 6379 webpacker: <<: *app