summaryrefslogtreecommitdiff
path: root/db/migrate/20170425112128_create_pipeline_schedules_table.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20170425112128_create_pipeline_schedules_table.rb')
-rw-r--r--db/migrate/20170425112128_create_pipeline_schedules_table.rb29
1 files changed, 0 insertions, 29 deletions
diff --git a/db/migrate/20170425112128_create_pipeline_schedules_table.rb b/db/migrate/20170425112128_create_pipeline_schedules_table.rb
deleted file mode 100644
index e66e81b34be..00000000000
--- a/db/migrate/20170425112128_create_pipeline_schedules_table.rb
+++ /dev/null
@@ -1,29 +0,0 @@
-# rubocop:disable Migration/Timestamps
-class CreatePipelineSchedulesTable < ActiveRecord::Migration[4.2]
- include Gitlab::Database::MigrationHelpers
-
- DOWNTIME = false
-
- def up
- create_table :ci_pipeline_schedules do |t|
- t.string :description
- t.string :ref
- t.string :cron
- t.string :cron_timezone
- t.datetime :next_run_at
- t.integer :project_id
- t.integer :owner_id
- t.boolean :active, default: true
- t.datetime :deleted_at
-
- t.timestamps null: true
- end
-
- add_index(:ci_pipeline_schedules, :project_id)
- add_index(:ci_pipeline_schedules, [:next_run_at, :active])
- end
-
- def down
- drop_table :ci_pipeline_schedules
- end
-end