mirror of
https://github.com/postalserver/postal.git
synced 2026-10-19 18:56:05 +00:00
Add IP-based SMTP authentication (#1149)
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
class AddUUIDToCredentials < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_column :credentials, :uuid, :string
|
||||
Credential.find_each do |c|
|
||||
c.update_column(:uuid, SecureRandom.uuid)
|
||||
end
|
||||
end
|
||||
end
|
||||
+2
-1
@@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 2018_02_16_114344) do
|
||||
ActiveRecord::Schema.define(version: 2020_07_17_083943) do
|
||||
|
||||
create_table "additional_route_endpoints", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t|
|
||||
t.integer "route_id"
|
||||
@@ -68,6 +68,7 @@ ActiveRecord::Schema.define(version: 2018_02_16_114344) do
|
||||
t.datetime "created_at", precision: 6
|
||||
t.datetime "updated_at", precision: 6
|
||||
t.boolean "hold", default: false
|
||||
t.string "uuid"
|
||||
end
|
||||
|
||||
create_table "domains", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t|
|
||||
|
||||
Reference in New Issue
Block a user