summaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2021-03-12 05:25:24 +0100
committerGitHub <noreply@github.com>2021-03-12 05:25:24 +0100
commit5cc45d22d3c5c326917d1a02a09f2afae83d4332 (patch)
tree5e3f5458b986d0501b60e17c4ea1cded6fe3186b /db
parentf2ca6c7a172deb9309c793adb87cdc4b46974a44 (diff)
Remove subscription_expires_at leftover from OStatus (#15857)
Diffstat (limited to 'db')
-rw-r--r--db/post_migrate/20210308133107_remove_subscription_expires_at_from_accounts.rb7
-rw-r--r--db/schema.rb3
2 files changed, 8 insertions, 2 deletions
diff --git a/db/post_migrate/20210308133107_remove_subscription_expires_at_from_accounts.rb b/db/post_migrate/20210308133107_remove_subscription_expires_at_from_accounts.rb
new file mode 100644
index 00000000000..53e24ef2614
--- /dev/null
+++ b/db/post_migrate/20210308133107_remove_subscription_expires_at_from_accounts.rb
@@ -0,0 +1,7 @@
+class RemoveSubscriptionExpiresAtFromAccounts < ActiveRecord::Migration[5.0]
+ def change
+ safety_assured do
+ remove_column :accounts, :subscription_expires_at, :datetime, null: true, default: nil
+ end
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 4b85fce8dc2..4edaf565152 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: 2021_02_21_045109) do
+ActiveRecord::Schema.define(version: 2021_03_08_133107) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -166,7 +166,6 @@ ActiveRecord::Schema.define(version: 2021_02_21_045109) do
t.integer "header_file_size"
t.datetime "header_updated_at"
t.string "avatar_remote_url"
- t.datetime "subscription_expires_at"
t.boolean "locked", default: false, null: false
t.string "header_remote_url", default: "", null: false
t.datetime "last_webfingered_at"