Sha256: c69f02a8c160d8468ef9fbf10daba735ff9abf98399b68742fe901058d5d061b
Contents?: true
Size: 725 Bytes
Versions: 1
Compression:
Stored size: 725 Bytes
Contents
class CreateEventExportFileTransitions < ActiveRecord::Migration[5.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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
enju_event-0.4.0.rc.1 | db/migrate/20140812153137_create_event_export_file_transitions.rb |