Skip to content

Commit

Permalink
AO3-6639 Output current DB schema (#4669)
Browse files Browse the repository at this point in the history
* AO3-6639 Output current DB schema

* Default is now used, remove explicit

* Pull from prod

* Revert "Pull from prod"

This reverts commit 6e4a835.

* Disable schema update in prod/stage

* SQL structure dump
  • Loading branch information
brianjaustin authored Dec 1, 2023
1 parent fa606f6 commit 820914f
Show file tree
Hide file tree
Showing 5 changed files with 750 additions and 656 deletions.
3 changes: 0 additions & 3 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ class Application < Rails::Application
# Configure sensitive parameters which will be filtered from the log file.
config.filter_parameters += [:content, :password, :terms_of_service_non_production]

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

# Allows belongs_to associations to be optional
config.active_record.belongs_to_required_by_default = false

Expand Down
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
Loading

0 comments on commit 820914f

Please sign in to comment.