]> cat aescling's git repositories - mastodon.git/commitdiff
Update annotations on Follow, FollowRequest, and Mute.
authorDavid Yip <yipdw@member.fsf.org>
Fri, 17 Nov 2017 23:41:15 +0000 (17:41 -0600)
committerDavid Yip <yipdw@member.fsf.org>
Fri, 17 Nov 2017 23:41:15 +0000 (17:41 -0600)
Follow and FollowRequest had conflicts in their schema annotations, so I
ran latest migrations and let annotate_models fix them up.

app/models/follow.rb
app/models/follow_request.rb
app/models/mute.rb
db/schema.rb

index b82da722724fc764c4ebda3b855fb028507eecfe..3fb665afc74ccc2a1a4d613a792a6835af530401 100644 (file)
@@ -6,9 +6,8 @@
 #  id                :integer          not null, primary key
 #  created_at        :datetime         not null
 #  updated_at        :datetime         not null
-#  account_id        :bigint          not null
-#  id                :bigint          not null, primary key
-#  target_account_id :bigint          not null
+#  account_id        :integer          not null
+#  target_account_id :integer          not null
 #  show_reblogs      :boolean          default(TRUE), not null
 #
 
index 21f01e18b197ca95302ede4c2acf7cd553142f6e..ebf6959cef77bb690fd83cb0981b6a97ce55f2b1 100644 (file)
@@ -6,9 +6,8 @@
 #  id                :integer          not null, primary key
 #  created_at        :datetime         not null
 #  updated_at        :datetime         not null
-#  account_id        :bigint          not null
-#  id                :bigint          not null, primary key
-#  target_account_id :bigint          not null
+#  account_id        :integer          not null
+#  target_account_id :integer          not null
 #  show_reblogs      :boolean          default(TRUE), not null
 #
 
index 74b445c0b9233920a9ac07e158191cb980e3cdd2..ca984641a5a91b736f8454f438067084462f1df5 100644 (file)
@@ -3,12 +3,12 @@
 #
 # Table name: mutes
 #
-#  id                 :bigint          not null, primary key
+#  id                 :integer          not null, primary key
 #  created_at         :datetime         not null
 #  updated_at         :datetime         not null
-#  account_id         :bigint          not null
-#  target_account_id  :bigint          not null
 #  hide_notifications :boolean          default(TRUE), not null
+#  account_id         :integer          not null
+#  target_account_id  :integer          not null
 #
 
 class Mute < ApplicationRecord
index c2de168857193966a2be0084b564cc1a1c424562..10e35cd7deba7bff9c7eae98005bfd65db448113 100644 (file)
@@ -234,7 +234,6 @@ ActiveRecord::Schema.define(version: 20171116161857) do
     t.boolean "hide_notifications", default: true, null: false
     t.bigint "account_id", null: false
     t.bigint "target_account_id", null: false
-    t.boolean "hide_notifications", default: true, null: false
     t.index ["account_id", "target_account_id"], name: "index_mutes_on_account_id_and_target_account_id", unique: true
   end