Skip to content
Snippets Groups Projects

Add rake task for copying 'main' database to 'ci' database

1 unresolved thread
1 file
+ 3
1
Compare changes
  • Side-by-side
  • Inline
@@ -19,6 +19,8 @@ class Migrate
and table_schema not in ('information_schema', 'pg_catalog')
SQL
DISKSPACE_HEADROOM_FACTOR = 1.25
attr_reader :backup_location
def initialize(backup_base_location: nil)
@@ -62,7 +64,7 @@ def diskspace_free
end
def required_diskspace_available?
needed = main_table_sizes * 1.25
needed = main_table_sizes * DISKSPACE_HEADROOM_FACTOR
available = diskspace_free
if needed > available
Loading