Sha256: 4c5bb1b86c7756c0dc266bb9fe31faaa61d96249e9c5471648c05b45c642c9a2
Contents?: true
Size: 676 Bytes
Versions: 8
Compression:
Stored size: 676 Bytes
Contents
class CreateUserCheckoutStatTransitions < ActiveRecord::Migration[4.2] def change create_table :user_checkout_stat_transitions do |t| t.string :to_state if ActiveRecord::Base.configurations[Rails.env]["adapter"].try(:match, /mysql/) t.text :metadata else t.text :metadata, default: "{}" end 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, %i[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
8 entries across 8 versions & 2 rubygems