Sha256: 423d92999d2195fcc3714c6ddf59e92880526e9b8a81f7a54799ebd6e4ab96a7
Contents?: true
Size: 531 Bytes
Versions: 38
Compression:
Stored size: 531 Bytes
Contents
class CreateMessageTransitions < ActiveRecord::Migration[4.2] 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, %i[sort_key message_id], unique: true end end
Version data entries
38 entries across 38 versions & 3 rubygems