Skip to content

Commit

Permalink
Fix seeds (#522)
Browse files Browse the repository at this point in the history
  • Loading branch information
LuginaJulia committed Jan 25, 2022
1 parent aa8e393 commit a6adea6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions db/seeds.rb
Original file line number Diff line number Diff line change
@@ -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).

Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a6adea6

Please sign in to comment.