Sha256: fa6277bf0b1c9e1baa7f16f30695811a4b77242fae4c45704ad1648ac150dfd3
Contents?: true
Size: 720 Bytes
Versions: 113
Compression:
Stored size: 720 Bytes
Contents
class CreateEventExportFileTransitions < ActiveRecord::Migration def change create_table :event_export_file_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 :event_export_file_id t.timestamps end add_index :event_export_file_transitions, :event_export_file_id, name: "index_event_export_file_transitions_on_file_id" add_index :event_export_file_transitions, [:sort_key, :event_export_file_id], unique: true, name: "index_event_export_file_transitions_on_sort_key_and_file_id" end end
Version data entries
113 entries across 109 versions & 7 rubygems