Optional domain block attribute that prevents media attachments from being downloaded
This commit is contained in:
parent
cca82bf0a2
commit
434cf8237e
4 changed files with 14 additions and 6 deletions
|
@ -0,0 +1,5 @@
|
|||
class AddRejectMediaToDomainBlocks < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
add_column :domain_blocks, :reject_media, :boolean
|
||||
end
|
||||
end
|
11
db/schema.rb
11
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: 20170123162658) do
|
||||
ActiveRecord::Schema.define(version: 20170123203248) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
@ -55,10 +55,11 @@ ActiveRecord::Schema.define(version: 20170123162658) do
|
|||
end
|
||||
|
||||
create_table "domain_blocks", force: :cascade do |t|
|
||||
t.string "domain", default: "", null: false
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.integer "severity", default: 0
|
||||
t.string "domain", default: "", null: false
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.integer "severity", default: 0
|
||||
t.boolean "reject_media"
|
||||
t.index ["domain"], name: "index_domain_blocks_on_domain", unique: true, using: :btree
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue