Sha256: 9d1d7f8823d3136548e0fdf0440c15d68992a4e0343d2485e50fff8f7283f1a5
Contents?: true
Size: 725 Bytes
Versions: 67
Compression:
Stored size: 725 Bytes
Contents
class CreateEventExportFileTransitions < ActiveRecord::Migration[4.2] 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
67 entries across 67 versions & 7 rubygems