Sha256: e421f4921370bab503bb3a808bc8ce6a7e9e40561944357b524ec8daef2e03d7
Contents?: true
Size: 462 Bytes
Versions: 3
Compression:
Stored size: 462 Bytes
Contents
# frozen_string_literal: true class CreateHasStatesStates < ActiveRecord::Migration[8.0] def change create_table :has_states_states do |t| t.string :state_type t.string :status, null: false t.json :metadata, null: false, default: {} t.references :stateable, polymorphic: true, null: false t.datetime :completed_at t.timestamps t.index [:status] t.index %i[stateable_type stateable_id] end end end
Version data entries
3 entries across 3 versions & 1 rubygems