Sha256: 284b7be04ff26623521022014c7ea004d659666573ecfa4ffdf2bbfda9af68b4
Contents?: true
Size: 669 Bytes
Versions: 66
Compression:
Stored size: 669 Bytes
Contents
class CreateEventImportFileTransitions < ActiveRecord::Migration[4.2] def change create_table :event_import_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_import_file_id t.timestamps end add_index :event_import_file_transitions, :event_import_file_id add_index :event_import_file_transitions, [:sort_key, :event_import_file_id], unique: true, name: "index_event_import_file_transitions_on_sort_key_and_file_id" end end
Version data entries
66 entries across 66 versions & 7 rubygems