Sha256: 57d8d4c3120a0815e4b8b056c3b3eb6b8439a090451f0f76248c0fb59be8b4d9
Contents?: true
Size: 724 Bytes
Versions: 23
Compression:
Stored size: 724 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, %i[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
23 entries across 23 versions & 1 rubygems