Sha256: adf1bda13fa718e9d156a798c928c298f3fbb99bdfa5ab553ea20c39a3d97215

Contents?: true

Size: 535 Bytes

Versions: 1

Compression:

Stored size: 535 Bytes

Contents

class CreateEventImportFileTransitions < ActiveRecord::Migration[4.2]
  def change
    create_table :event_import_file_transitions do |t|
      t.string :to_state
      t.text :metadata, default: "{}"
      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

1 entries across 1 versions & 1 rubygems

Version Path
enju_event-0.4.0.beta.2 db/migrate/20140523171309_create_event_import_file_transitions.rb