gitlab-org--gitlab-foss/db/migrate/20170329095907_create_ci_trigger_schedules.rb

23 lines
582 B
Ruby
Raw Normal View History

# rubocop:disable Migration/Datetime
2017-03-29 06:07:25 -04:00
class CreateCiTriggerSchedules < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
def change
2017-03-29 06:07:25 -04:00
create_table :ci_trigger_schedules do |t|
t.integer "project_id"
t.integer "trigger_id", null: false
t.datetime "deleted_at"
t.datetime "created_at"
t.datetime "updated_at"
t.string "cron"
t.string "cron_timezone"
2017-03-29 06:07:25 -04:00
t.datetime "next_run_at"
end
add_index :ci_trigger_schedules, :next_run_at
add_index :ci_trigger_schedules, :project_id
2017-03-29 06:07:25 -04:00
end
end