Sha256: 80f740f983d6ed910d45fcd59828668570cde78c59c6e8e748611f69ddb62571
Contents?: true
Size: 538 Bytes
Versions: 44
Compression:
Stored size: 538 Bytes
Contents
class CreateUserCheckoutStatTransitions < ActiveRecord::Migration def change create_table :user_checkout_stat_transitions do |t| t.string :to_state t.text :metadata, default: "{}" t.integer :sort_key t.integer :user_checkout_stat_id t.timestamps end add_index :user_checkout_stat_transitions, :user_checkout_stat_id add_index :user_checkout_stat_transitions, [:sort_key, :user_checkout_stat_id], unique: true, name: "index_user_checkout_stat_transitions_on_sort_key_and_stat_id" end end
Version data entries
44 entries across 44 versions & 11 rubygems