# reblogs_count :integer default(0), not null
# language :string
# conversation_id :integer
-# local :boolean default(FALSE)
+# local :boolean
#
class Status < ApplicationRecord
class AddLocalToStatuses < ActiveRecord::Migration[5.1]
def change
- add_column :statuses, :local, :boolean, null: true, default: false
+ add_column :statuses, :local, :boolean, null: true, default: nil
end
end
t.integer "reblogs_count", default: 0, null: false
t.string "language"
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 ["conversation_id"], name: "index_statuses_on_conversation_id"
t.index ["in_reply_to_id"], name: "index_statuses_on_in_reply_to_id"