1
0

20221006061337_create_preview_card_trends.rb 418 B

1234567891011
  1. class CreatePreviewCardTrends < ActiveRecord::Migration[6.1]
  2. def change
  3. create_table :preview_card_trends do |t|
  4. t.references :preview_card, null: false, foreign_key: { on_delete: :cascade }, index: { unique: true }
  5. t.float :score, null: false, default: 0
  6. t.integer :rank, null: false, default: 0
  7. t.boolean :allowed, null: false, default: false
  8. t.string :language
  9. end
  10. end
  11. end