مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-11-30 21:32:30 +00:00
style(rubocop): fix all safe auto correctable offenses
هذا الالتزام موجود في:
@@ -1,5 +1,7 @@
|
||||
# This migration comes from authie (originally 20141012174250)
|
||||
class CreateAuthieSessions < ActiveRecord::Migration
|
||||
|
||||
def change
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# This migration comes from authie (originally 20141013115205)
|
||||
class AddIndexesToAuthieSessions < ActiveRecord::Migration
|
||||
|
||||
def change
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# This migration comes from authie (originally 20150109144120)
|
||||
class AddParentIdToAuthieSessions < ActiveRecord::Migration
|
||||
|
||||
def change
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# This migration comes from authie (originally 20150305135400)
|
||||
class AddTwoFactorAuthFieldsToAuthie < ActiveRecord::Migration
|
||||
|
||||
def change
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
class InitialSchema < ActiveRecord::Migration
|
||||
def up
|
||||
|
||||
def up
|
||||
create_table "additional_route_endpoints", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t|
|
||||
t.integer "route_id"
|
||||
t.string "endpoint_type"
|
||||
@@ -22,8 +22,8 @@ class InitialSchema < ActiveRecord::Migration
|
||||
t.string "token"
|
||||
t.string "browser_id"
|
||||
t.integer "user_id"
|
||||
t.boolean "active", default: true
|
||||
t.text "data", limit: 65535
|
||||
t.boolean "active", default: true
|
||||
t.text "data", limit: 65_535
|
||||
t.datetime "expires_at"
|
||||
t.datetime "login_at"
|
||||
t.string "login_ip"
|
||||
@@ -37,7 +37,7 @@ class InitialSchema < ActiveRecord::Migration
|
||||
t.integer "parent_id"
|
||||
t.datetime "two_factored_at"
|
||||
t.string "two_factored_ip"
|
||||
t.integer "requests", default: 0
|
||||
t.integer "requests", default: 0
|
||||
t.datetime "password_seen_at"
|
||||
t.string "token_hash"
|
||||
t.index ["browser_id"], name: "index_authie_sessions_on_browser_id", length: { browser_id: 8 }, using: :btree
|
||||
@@ -50,11 +50,11 @@ class InitialSchema < ActiveRecord::Migration
|
||||
t.string "key"
|
||||
t.string "type"
|
||||
t.string "name"
|
||||
t.text "options", limit: 65535
|
||||
t.text "options", limit: 65_535
|
||||
t.datetime "last_used_at", precision: 6
|
||||
t.datetime "created_at", precision: 6
|
||||
t.datetime "updated_at", precision: 6
|
||||
t.boolean "hold", default: false
|
||||
t.boolean "hold", default: false
|
||||
end
|
||||
|
||||
create_table "domains", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t|
|
||||
@@ -64,7 +64,7 @@ class InitialSchema < ActiveRecord::Migration
|
||||
t.string "verification_token"
|
||||
t.string "verification_method"
|
||||
t.datetime "verified_at"
|
||||
t.text "dkim_private_key", limit: 65535
|
||||
t.text "dkim_private_key", limit: 65_535
|
||||
t.datetime "created_at", precision: 6
|
||||
t.datetime "updated_at", precision: 6
|
||||
t.datetime "dns_checked_at", precision: 6
|
||||
@@ -93,13 +93,13 @@ class InitialSchema < ActiveRecord::Migration
|
||||
t.string "url"
|
||||
t.string "encoding"
|
||||
t.string "format"
|
||||
t.boolean "strip_replies", default: false
|
||||
t.text "error", limit: 65535
|
||||
t.boolean "strip_replies", default: false
|
||||
t.text "error", limit: 65_535
|
||||
t.datetime "disabled_until", precision: 6
|
||||
t.datetime "last_used_at", precision: 6
|
||||
t.datetime "created_at", precision: 6
|
||||
t.datetime "updated_at", precision: 6
|
||||
t.boolean "include_attachments", default: true
|
||||
t.boolean "include_attachments", default: true
|
||||
t.integer "timeout"
|
||||
end
|
||||
|
||||
@@ -117,8 +117,8 @@ class InitialSchema < ActiveRecord::Migration
|
||||
t.string "owner_type"
|
||||
t.integer "owner_id"
|
||||
t.integer "ip_pool_id"
|
||||
t.text "from_text", limit: 65535
|
||||
t.text "to_text", limit: 65535
|
||||
t.text "from_text", limit: 65_535
|
||||
t.text "to_text", limit: 65_535
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
end
|
||||
@@ -128,7 +128,7 @@ class InitialSchema < ActiveRecord::Migration
|
||||
t.string "uuid"
|
||||
t.datetime "created_at", precision: 6
|
||||
t.datetime "updated_at", precision: 6
|
||||
t.boolean "default", default: false
|
||||
t.boolean "default", default: false
|
||||
t.string "type"
|
||||
t.index ["uuid"], name: "index_ip_pools_on_uuid", length: { uuid: 8 }, using: :btree
|
||||
end
|
||||
@@ -143,7 +143,7 @@ class InitialSchema < ActiveRecord::Migration
|
||||
create_table "organization_users", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t|
|
||||
t.integer "organization_id"
|
||||
t.integer "user_id"
|
||||
t.datetime "created_at", precision: 6
|
||||
t.datetime "created_at", precision: 6
|
||||
t.boolean "admin", default: false
|
||||
t.boolean "all_servers", default: true
|
||||
t.string "user_type"
|
||||
@@ -170,14 +170,14 @@ class InitialSchema < ActiveRecord::Migration
|
||||
t.integer "message_id"
|
||||
t.string "domain"
|
||||
t.string "locked_by"
|
||||
t.datetime "locked_at", precision: 6
|
||||
t.datetime "locked_at", precision: 6
|
||||
t.datetime "retry_after"
|
||||
t.datetime "created_at", precision: 6
|
||||
t.datetime "updated_at", precision: 6
|
||||
t.integer "ip_address_id"
|
||||
t.integer "attempts", default: 0
|
||||
t.integer "attempts", default: 0
|
||||
t.integer "route_id"
|
||||
t.boolean "manual", default: false
|
||||
t.boolean "manual", default: false
|
||||
t.string "batch_key"
|
||||
t.index ["domain"], name: "index_queued_messages_on_domain", length: { domain: 8 }, using: :btree
|
||||
t.index ["message_id"], name: "index_queued_messages_on_message_id", using: :btree
|
||||
@@ -209,11 +209,11 @@ class InitialSchema < ActiveRecord::Migration
|
||||
t.datetime "updated_at", precision: 6
|
||||
t.string "permalink"
|
||||
t.integer "send_limit"
|
||||
t.datetime "deleted_at", precision: 6
|
||||
t.datetime "deleted_at", precision: 6
|
||||
t.integer "message_retention_days"
|
||||
t.integer "raw_message_retention_days"
|
||||
t.integer "raw_message_retention_size"
|
||||
t.boolean "allow_sender", default: false
|
||||
t.boolean "allow_sender", default: false
|
||||
t.string "token"
|
||||
t.datetime "send_limit_approaching_at", precision: 6
|
||||
t.datetime "send_limit_approaching_notified_at", precision: 6
|
||||
@@ -224,9 +224,9 @@ class InitialSchema < ActiveRecord::Migration
|
||||
t.string "postmaster_address"
|
||||
t.datetime "suspended_at", precision: 6
|
||||
t.decimal "outbound_spam_threshold", precision: 8, scale: 2
|
||||
t.text "domains_not_to_click_track", limit: 65535
|
||||
t.text "domains_not_to_click_track", limit: 65_535
|
||||
t.string "suspension_reason"
|
||||
t.boolean "log_smtp_data", default: false
|
||||
t.boolean "log_smtp_data", default: false
|
||||
t.index ["organization_id"], name: "index_servers_on_organization_id", using: :btree
|
||||
t.index ["permalink"], name: "index_servers_on_permalink", length: { permalink: 6 }, using: :btree
|
||||
t.index ["token"], name: "index_servers_on_token", length: { token: 6 }, using: :btree
|
||||
@@ -240,7 +240,7 @@ class InitialSchema < ActiveRecord::Migration
|
||||
t.string "hostname"
|
||||
t.string "ssl_mode"
|
||||
t.integer "port"
|
||||
t.text "error", limit: 65535
|
||||
t.text "error", limit: 65_535
|
||||
t.datetime "disabled_until", precision: 6
|
||||
t.datetime "last_used_at", precision: 6
|
||||
t.datetime "created_at", precision: 6
|
||||
@@ -255,9 +255,9 @@ class InitialSchema < ActiveRecord::Migration
|
||||
|
||||
create_table "track_certificates", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t|
|
||||
t.string "domain"
|
||||
t.text "certificate", limit: 65535
|
||||
t.text "intermediaries", limit: 65535
|
||||
t.text "key", limit: 65535
|
||||
t.text "certificate", limit: 65_535
|
||||
t.text "intermediaries", limit: 65_535
|
||||
t.text "key", limit: 65_535
|
||||
t.datetime "expires_at"
|
||||
t.datetime "renew_after"
|
||||
t.string "verification_path"
|
||||
@@ -280,7 +280,7 @@ class InitialSchema < ActiveRecord::Migration
|
||||
t.boolean "ssl_enabled", default: true
|
||||
t.boolean "track_clicks", default: true
|
||||
t.boolean "track_loads", default: true
|
||||
t.text "excluded_click_domains", limit: 65535
|
||||
t.text "excluded_click_domains", limit: 65_535
|
||||
end
|
||||
|
||||
create_table "user_invites", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t|
|
||||
@@ -305,7 +305,7 @@ class InitialSchema < ActiveRecord::Migration
|
||||
t.datetime "updated_at", precision: 6
|
||||
t.string "password_reset_token"
|
||||
t.datetime "password_reset_token_valid_until"
|
||||
t.boolean "admin", default: false
|
||||
t.boolean "admin", default: false
|
||||
t.index ["email_address"], name: "index_users_on_email_address", length: { email_address: 8 }, using: :btree
|
||||
t.index ["uuid"], name: "index_users_on_uuid", length: { uuid: 8 }, using: :btree
|
||||
end
|
||||
@@ -323,11 +323,11 @@ class InitialSchema < ActiveRecord::Migration
|
||||
t.string "url"
|
||||
t.string "event"
|
||||
t.string "uuid"
|
||||
t.text "payload", limit: 65535
|
||||
t.integer "attempts", default: 0
|
||||
t.datetime "retry_after", precision: 6
|
||||
t.text "error", limit: 65535
|
||||
t.datetime "created_at", precision: 6
|
||||
t.text "payload", limit: 65_535
|
||||
t.integer "attempts", default: 0
|
||||
t.datetime "retry_after", precision: 6
|
||||
t.text "error", limit: 65_535
|
||||
t.datetime "created_at", precision: 6
|
||||
end
|
||||
|
||||
create_table "webhooks", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t|
|
||||
@@ -344,4 +344,5 @@ class InitialSchema < ActiveRecord::Migration
|
||||
t.index ["server_id"], name: "index_webhooks_on_server_id", using: :btree
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# This migration comes from authie (originally 20170417170000)
|
||||
class AddTokenHashesToAuthieSessions < ActiveRecord::Migration
|
||||
|
||||
def change
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
# This migration comes from authie (originally 20170421174100)
|
||||
class AddIndexToTokenHashesOnAuthieSessions < ActiveRecord::Migration
|
||||
|
||||
def change
|
||||
add_index :authie_sessions, :token_hash, :length => 8
|
||||
add_index :authie_sessions, :token_hash, length: 8
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
class RemoveTypeFromIPPools < ActiveRecord::Migration[5.0]
|
||||
|
||||
def change
|
||||
remove_column :ip_pools, :type, :string
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
# This migration comes from authie (originally 20180215152200)
|
||||
class AddHostToAuthieSessions < ActiveRecord::Migration[4.2]
|
||||
|
||||
def change
|
||||
add_column :authie_sessions, :host, :string
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
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
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
class AddPriorityToIPAddresses < ActiveRecord::Migration[5.2]
|
||||
|
||||
def change
|
||||
add_column :ip_addresses, :priority, :integer
|
||||
IPAddress.where(priority: nil).update_all(priority: 100)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -10,8 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 2021_07_27_210551) do
|
||||
|
||||
ActiveRecord::Schema.define(version: 20_210_727_210_551) do
|
||||
create_table "additional_route_endpoints", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t|
|
||||
t.integer "route_id"
|
||||
t.string "endpoint_type"
|
||||
@@ -357,5 +356,4 @@ ActiveRecord::Schema.define(version: 2021_07_27_210551) do
|
||||
t.datetime "updated_at", precision: 6
|
||||
t.index ["server_id"], name: "index_webhooks_on_server_id"
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم