Fix locking migration on statuses table. Nullable column and NO default value (#4825)
This commit is contained in:
parent
3b88fcd18b
commit
5ad3153b0b
3 changed files with 3 additions and 3 deletions
|
@ -22,7 +22,7 @@
|
||||||
# reblogs_count :integer default(0), not null
|
# reblogs_count :integer default(0), not null
|
||||||
# language :string
|
# language :string
|
||||||
# conversation_id :integer
|
# conversation_id :integer
|
||||||
# local :boolean default(FALSE)
|
# local :boolean
|
||||||
#
|
#
|
||||||
|
|
||||||
class Status < ApplicationRecord
|
class Status < ApplicationRecord
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
class AddLocalToStatuses < ActiveRecord::Migration[5.1]
|
class AddLocalToStatuses < ActiveRecord::Migration[5.1]
|
||||||
def change
|
def change
|
||||||
add_column :statuses, :local, :boolean, null: true, default: false
|
add_column :statuses, :local, :boolean, null: true, default: nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -315,7 +315,7 @@ ActiveRecord::Schema.define(version: 20170905165803) do
|
||||||
t.integer "reblogs_count", default: 0, null: false
|
t.integer "reblogs_count", default: 0, null: false
|
||||||
t.string "language"
|
t.string "language"
|
||||||
t.bigint "conversation_id"
|
t.bigint "conversation_id"
|
||||||
t.boolean "local", default: false
|
t.boolean "local"
|
||||||
t.index ["account_id", "id"], name: "index_statuses_on_account_id_id"
|
t.index ["account_id", "id"], name: "index_statuses_on_account_id_id"
|
||||||
t.index ["conversation_id"], name: "index_statuses_on_conversation_id"
|
t.index ["conversation_id"], name: "index_statuses_on_conversation_id"
|
||||||
t.index ["in_reply_to_id"], name: "index_statuses_on_in_reply_to_id"
|
t.index ["in_reply_to_id"], name: "index_statuses_on_in_reply_to_id"
|
||||||
|
|
Loading…
Reference in a new issue