debian-mirror-gitlab/db/migrate/20190906104555_create_alerts_service_data.rb

18 lines
517 B
Ruby
Raw Normal View History

2019-12-04 20:38:33 +05:30
# frozen_string_literal: true
class CreateAlertsServiceData < ActiveRecord::Migration[5.2]
DOWNTIME = false
2020-05-24 23:13:21 +05:30
# rubocop:disable Migration/PreventStrings
2019-12-04 20:38:33 +05:30
def change
create_table :alerts_service_data do |t|
t.references :service, type: :integer, index: true, null: false,
foreign_key: { on_delete: :cascade }
t.timestamps_with_timezone
t.string :encrypted_token, limit: 255
t.string :encrypted_token_iv, limit: 255
end
end
2020-05-24 23:13:21 +05:30
# rubocop:enable Migration/PreventStrings
2019-12-04 20:38:33 +05:30
end