Sha256: 61abb0dda14aefa8e2d7f23dcbf563ea21c84d5ce2c89463f0d90910ab945688
Contents?: true
Size: 590 Bytes
Versions: 2
Compression:
Stored size: 590 Bytes
Contents
# This migration creates the `potential_cruft_stacks` table class CreatePotentialCruftStacks < ActiveRecord::Migration<%= migration_version %> def change create_table :potential_cruft_stacks do |t| t.references :potential_cruft, null: false t.string :stack_hash, null: false, index: true t.json :stack, null: false t.integer :occurrences, null: false, index: true, default: 0 t.timestamps t.index %i[potential_cruft_id stack_hash], unique: true, name: 'index_pcs_on_potential_cruft_id_and_stack_hash' end end end
Version data entries
2 entries across 2 versions & 1 rubygems