Fix up migration things
This commit is contained in:
parent
0e210b5c63
commit
685fafcc27
|
@ -3,12 +3,12 @@
|
||||||
#
|
#
|
||||||
# Table name: mutes
|
# Table name: mutes
|
||||||
#
|
#
|
||||||
|
# id :integer not null, primary key
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
# account_id :integer not null
|
# account_id :integer not null
|
||||||
# id :integer not null, primary key
|
|
||||||
# target_account_id :integer not null
|
# target_account_id :integer not null
|
||||||
# hide_notifications :boolean default(FALSE), not null
|
# hide_notifications :boolean default(TRUE), not null
|
||||||
#
|
#
|
||||||
|
|
||||||
class Mute < ApplicationRecord
|
class Mute < ApplicationRecord
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
require Rails.root.join('lib', 'mastodon', 'migration_helpers')
|
||||||
|
|
||||||
class AddHideNotificationsToMute < ActiveRecord::Migration[5.1]
|
class AddHideNotificationsToMute < ActiveRecord::Migration[5.1]
|
||||||
include Mastodon::MigrationHelpers
|
include Mastodon::MigrationHelpers
|
||||||
|
|
||||||
|
|
|
@ -200,7 +200,7 @@ ActiveRecord::Schema.define(version: 20171010025614) do
|
||||||
t.datetime "updated_at", null: false
|
t.datetime "updated_at", null: false
|
||||||
t.bigint "account_id", null: false
|
t.bigint "account_id", null: false
|
||||||
t.bigint "target_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
|
t.index ["account_id", "target_account_id"], name: "index_mutes_on_account_id_and_target_account_id", unique: true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Reference in a new issue