20200417125749_add_storage_schema_version.rb 536 B

123456789101112131415
  1. # frozen_string_literal: true
  2. class AddStorageSchemaVersion < ActiveRecord::Migration[5.2]
  3. def change
  4. add_column :preview_cards, :image_storage_schema_version, :integer
  5. safety_assured do
  6. change_table(:accounts, bulk: true) do |t|
  7. t.column :avatar_storage_schema_version, :integer
  8. t.column :header_storage_schema_version, :integer
  9. end
  10. end
  11. add_column :media_attachments, :file_storage_schema_version, :integer
  12. add_column :custom_emojis, :image_storage_schema_version, :integer
  13. end
  14. end