Add consumer-based RfC Visibility settings
This setting will be useful to increase data protection, where users might not be allowed to see RfCs from other contexts.
This commit is contained in:
@ -0,0 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AddRfcVisibilityToConsumer < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
add_column :consumers, :rfc_visibility, :integer, limit: 1, null: false, default: 0, comment: 'Used as enum in Rails'
|
||||
end
|
||||
end
|
@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[7.0].define(version: 2023_02_06_203117) do
|
||||
ActiveRecord::Schema[7.0].define(version: 2023_02_19_113125) do
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "pg_trgm"
|
||||
enable_extension "pgcrypto"
|
||||
@ -107,6 +107,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_02_06_203117) do
|
||||
t.datetime "updated_at"
|
||||
t.string "oauth_key"
|
||||
t.string "oauth_secret"
|
||||
t.integer "rfc_visibility", limit: 2, default: 0, null: false, comment: "Used as enum in Rails"
|
||||
end
|
||||
|
||||
create_table "error_template_attributes", id: :serial, force: :cascade do |t|
|
||||
|
Reference in New Issue
Block a user