JPSolutions commited on
Commit
2ac8885
·
verified ·
1 Parent(s): ad79d7e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -72,9 +72,7 @@ RUN find /app -name "Gemfile" -not -path "*/vendor/*" -execdir bundle install \;
72
  COPY nginx.conf /etc/nginx/nginx.conf
73
  COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
74
 
75
- # Parche ajustado para corregir tipos de UUID e índices inexistentes
76
- # Parche ajustado para corregir tipos de UUID en migraciones
77
- # Parche ajustado para corregir tipos de UUID en migraciones (incluyendo contact_companies y user_tours)
78
  RUN printf '%s\n' \
79
  'import glob' \
80
  'for filepath in glob.glob("/app/**/db/migrate/*.rb", recursive=True):' \
@@ -90,6 +88,8 @@ RUN printf '%s\n' \
90
  ' content = content.replace("type: :uuid", "type: :bigint").replace(":uuid", ":bigint")' \
91
  ' if "create_user_tours" in filepath or "20260407000001" in filepath:' \
92
  ' content = content.replace("type: :uuid", "type: :bigint").replace(":uuid", ":bigint")' \
 
 
93
  ' if "20250819224900_init_schema.rb" in filepath:' \
94
  ' lines = []' \
95
  ' for line in content.splitlines():' \
 
72
  COPY nginx.conf /etc/nginx/nginx.conf
73
  COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
74
 
75
+ # Parche ajustado para incluir create_setup_survey_responses
 
 
76
  RUN printf '%s\n' \
77
  'import glob' \
78
  'for filepath in glob.glob("/app/**/db/migrate/*.rb", recursive=True):' \
 
88
  ' content = content.replace("type: :uuid", "type: :bigint").replace(":uuid", ":bigint")' \
89
  ' if "create_user_tours" in filepath or "20260407000001" in filepath:' \
90
  ' content = content.replace("type: :uuid", "type: :bigint").replace(":uuid", ":bigint")' \
91
+ ' if "create_setup_survey_responses" in filepath or "20260409000001" in filepath:' \
92
+ ' content = content.replace("type: :uuid", "type: :bigint").replace(":uuid", ":bigint")' \
93
  ' if "20250819224900_init_schema.rb" in filepath:' \
94
  ' lines = []' \
95
  ' for line in content.splitlines():' \