Fix up migration things

This commit is contained in:
aschmitz 2017-10-22 21:37:44 -05:00
parent 0e210b5c63
commit 685fafcc27
3 changed files with 5 additions and 3 deletions

View File

@ -3,12 +3,12 @@
#
# Table name: mutes
#
# id :integer not null, primary key
# created_at :datetime not null
# updated_at :datetime not null
# account_id :integer not null
# id :integer not null, primary key
# target_account_id :integer not null
# hide_notifications :boolean default(FALSE), not null
# hide_notifications :boolean default(TRUE), not null
#
class Mute < ApplicationRecord

View File

@ -1,3 +1,5 @@
require Rails.root.join('lib', 'mastodon', 'migration_helpers')
class AddHideNotificationsToMute < ActiveRecord::Migration[5.1]
include Mastodon::MigrationHelpers

View File

@ -200,7 +200,7 @@ ActiveRecord::Schema.define(version: 20171010025614) do
t.datetime "updated_at", null: false
t.bigint "account_id", null: false
t.bigint "target_account_id", null: false
t.boolean "hide_notifications", default: false, 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