Sha256: df0b46a0d68dd0ab6d62b91bb490af09ff5c201ece61b7cc5cbc711c027b89f3

Contents?: true

Size: 669 Bytes

Versions: 6

Compression:

Stored size: 669 Bytes

Contents

class CreateAgentImportFileTransitions < ActiveRecord::Migration[5.2]
  def change
    create_table :agent_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 :agent_import_file_id
      t.timestamps
    end

    add_index :agent_import_file_transitions, :agent_import_file_id
    add_index :agent_import_file_transitions, [:sort_key, :agent_import_file_id], unique: true, name: "index_agent_import_file_transitions_on_sort_key_and_file_id"
  end
end

Version data entries

6 entries across 6 versions & 6 rubygems

Version Path
enju_inventory-0.4.0.rc.1 spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb
enju_ndl-0.4.0.rc.1 spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb
enju_circulation-0.4.0.rc.1 spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb
enju_manifestation_viewer-0.4.0.rc.1 spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb
enju_subject-0.4.0.rc.1 spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb
enju_event-0.4.0.rc.1 spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb