Sha256: ff062b91920291f9c2b3eacccc00a1e21f03f82a6fa01c958b9f11468bd7431e

Contents?: true

Size: 668 Bytes

Versions: 17

Compression:

Stored size: 668 Bytes

Contents

class CreateAgentImportFileTransitions < ActiveRecord::Migration[4.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, %i[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

17 entries across 17 versions & 2 rubygems

Version Path
enju_leaf-1.3.6 spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb
enju_leaf-1.3.5 spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb
enju_leaf-1.3.4 spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb
enju_leaf-1.3.4.rc.2 spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb
enju_leaf-1.3.4.rc.1 spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb
enju_leaf-1.3.3.1 spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb
enju_leaf-1.3.3 spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb
enju_manifestation_viewer-0.3.3 spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb
enju_leaf-1.3.2 spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb
enju_manifestation_viewer-0.3.2 spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb
enju_leaf-1.3.1 spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb
enju_manifestation_viewer-0.3.1 spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb
enju_leaf-1.3.0 spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb
enju_manifestation_viewer-0.3.0 spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb
enju_leaf-1.3.0.rc.1 spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb
enju_manifestation_viewer-0.3.0.rc.1 spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb
enju_manifestation_viewer-0.3.0.beta.2 spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb