summaryrefslogtreecommitdiff
path: root/db/migrate/20191031095636_create_project_settings.rb
blob: 0263eceb3c1a8190e2da28aa50ebc6519e3b17a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

class CreateProjectSettings < ActiveRecord::Migration[5.2]
  DOWNTIME = false

  def change
    create_table :project_settings, id: false do |t|
      t.timestamps_with_timezone null: false
      t.references :project, primary_key: true, default: nil, type: :integer, index: false, foreign_key: { on_delete: :cascade }
    end
  end
end