diff options
Diffstat (limited to 'db/migrate/20191031095636_create_project_settings.rb')
-rw-r--r-- | db/migrate/20191031095636_create_project_settings.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/db/migrate/20191031095636_create_project_settings.rb b/db/migrate/20191031095636_create_project_settings.rb new file mode 100644 index 00000000000..0263eceb3c1 --- /dev/null +++ b/db/migrate/20191031095636_create_project_settings.rb @@ -0,0 +1,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 |