Sha256: 8433be6d1ce20640d8050f8df3286bb9398deeaa2d1ac2f4013787818783c39f
Contents?: true
Size: 677 Bytes
Versions: 1
Compression:
Stored size: 677 Bytes
Contents
class CreateUserCheckoutStatTransitions < ActiveRecord::Migration[5.0] 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, [: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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
enju_seed-0.3.0.beta.4 | spec/dummy/db/migrate/20140528045518_create_user_checkout_stat_transitions.rb |