Skip to content

Commit

Permalink
Disable schema update in prod/stage
Browse files Browse the repository at this point in the history
  • Loading branch information
brianjaustin committed Nov 22, 2023
1 parent 345d09e commit 5e4678c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,7 @@
config.active_support.deprecation = :notify

config.middleware.use Rack::Attack

# Disable dumping schemas after migrations.
config.active_record.dump_schema_after_migration = false
end
3 changes: 3 additions & 0 deletions config/environments/staging.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,7 @@
end

config.middleware.use Rack::Attack

# Disable dumping schemas after migrations.
config.active_record.dump_schema_after_migration = false
end

0 comments on commit 5e4678c

Please sign in to comment.