20211112011713_add_language_to_preview_cards.rb 325 B

12345678910111213
  1. # frozen_string_literal: true
  2. class AddLanguageToPreviewCards < ActiveRecord::Migration[6.1]
  3. def change
  4. safety_assured do
  5. change_table(:preview_cards, bulk: true) do |t|
  6. t.column :language, :string
  7. t.column :max_score, :float
  8. t.column :max_score_at, :datetime
  9. end
  10. end
  11. end
  12. end