Remove PubSubHubbub-related columns from accounts table (#16170)
This commit is contained in:
parent
d8e0c8a89e
commit
1294f9ee4f
15 changed files with 24 additions and 208 deletions
|
@ -0,0 +1,12 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class RemoveHubURLFromAccounts < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
safety_assured do
|
||||
remove_column :accounts, :secret, :string, null: false, default: ''
|
||||
remove_column :accounts, :remote_url, :string, null: false, default: ''
|
||||
remove_column :accounts, :salmon_url, :string, null: false, default: ''
|
||||
remove_column :accounts, :hub_url, :string, null: false, default: ''
|
||||
end
|
||||
end
|
||||
end
|
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 2021_05_05_174616) do
|
||||
ActiveRecord::Schema.define(version: 2021_05_07_001928) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
@ -136,12 +136,8 @@ ActiveRecord::Schema.define(version: 2021_05_05_174616) do
|
|||
create_table "accounts", id: :bigint, default: -> { "timestamp_id('accounts'::text)" }, force: :cascade do |t|
|
||||
t.string "username", default: "", null: false
|
||||
t.string "domain"
|
||||
t.string "secret", default: "", null: false
|
||||
t.text "private_key"
|
||||
t.text "public_key", default: "", null: false
|
||||
t.string "remote_url", default: "", null: false
|
||||
t.string "salmon_url", default: "", null: false
|
||||
t.string "hub_url", default: "", null: false
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.text "note", default: "", null: false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue