diff options
Diffstat (limited to 'db/migrate/20201228110136_create_iterations_cadence.rb')
-rw-r--r-- | db/migrate/20201228110136_create_iterations_cadence.rb | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/db/migrate/20201228110136_create_iterations_cadence.rb b/db/migrate/20201228110136_create_iterations_cadence.rb deleted file mode 100644 index 95601ab4b29..00000000000 --- a/db/migrate/20201228110136_create_iterations_cadence.rb +++ /dev/null @@ -1,29 +0,0 @@ -# frozen_string_literal: true - -class CreateIterationsCadence < ActiveRecord::Migration[6.0] - include Gitlab::Database::MigrationHelpers - - DOWNTIME = false - - disable_ddl_transaction! - - def up - create_table_with_constraints :iterations_cadences do |t| - t.references :group, null: false, foreign_key: { to_table: :namespaces, on_delete: :cascade } - t.timestamps_with_timezone null: false - t.date :start_date, null: false - t.date :last_run_date - t.integer :duration_in_weeks - t.integer :iterations_in_advance - t.boolean :active, default: true, null: false - t.boolean :automatic, default: true, null: false - t.text :title, null: false - - t.text_limit :title, 255 - end - end - - def down - drop_table :iterations_cadences if table_exists?(:iterations_cadences) - end -end |