about summary refs log tree commit diff
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20200901035527_add_sticky_to_account_domain_permissions.rb7
-rw-r--r--db/schema.rb3
2 files changed, 9 insertions, 1 deletions
diff --git a/db/migrate/20200901035527_add_sticky_to_account_domain_permissions.rb b/db/migrate/20200901035527_add_sticky_to_account_domain_permissions.rb
new file mode 100644
index 000000000..2acfce329
--- /dev/null
+++ b/db/migrate/20200901035527_add_sticky_to_account_domain_permissions.rb
@@ -0,0 +1,7 @@
+class AddStickyToAccountDomainPermissions < ActiveRecord::Migration[5.2]
+  def change
+    safety_assured do
+      add_column :account_domain_permissions, :sticky, :boolean, default: false, null: false
+    end
+  end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 9ee9c345d..88105f462 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -10,7 +10,7 @@
 #
 # It's strongly recommended that you check this file into your version control system.
 
-ActiveRecord::Schema.define(version: 2020_08_26_125821) do
+ActiveRecord::Schema.define(version: 2020_09_01_035527) do
 
   # These are extensions that must be enabled in order to support this database
   enable_extension "plpgsql"
@@ -48,6 +48,7 @@ ActiveRecord::Schema.define(version: 2020_08_26_125821) do
     t.bigint "account_id", null: false
     t.string "domain", default: "", null: false
     t.integer "visibility", default: 0, null: false
+    t.boolean "sticky", default: false, null: false
     t.index ["account_id", "domain"], name: "index_account_domain_permissions_on_account_id_and_domain", unique: true
     t.index ["account_id"], name: "index_account_domain_permissions_on_account_id"
     t.index ["domain"], name: "index_account_domain_permissions_on_domain"