Sha256: b423cf24a3d39fc8db4007e95bd1a7b132174e350d20ae26147a2bd3e9d17749
Contents?: true
Size: 527 Bytes
Versions: 197
Compression:
Stored size: 527 Bytes
Contents
class CreateMessageTransitions < ActiveRecord::Migration def change create_table :message_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 :message_id t.timestamps end add_index :message_transitions, :message_id add_index :message_transitions, [:sort_key, :message_id], unique: true end end
Version data entries
197 entries across 190 versions & 20 rubygems