Sha256: acebbcbfc37d844c5ef94f950ac6ecf5c066328fe8aaef5e4b5aa49595d644de

Contents?: true

Size: 510 Bytes

Versions: 76

Compression:

Stored size: 510 Bytes

Contents

class CreateImportRequestTransitions < ActiveRecord::Migration
  def change
    create_table :import_request_transitions do |t|
      t.string :to_state
      t.text :metadata, default: "{}"
      t.integer :sort_key
      t.integer :import_request_id
      t.timestamps
    end

    add_index :import_request_transitions, :import_request_id
    add_index :import_request_transitions, [:sort_key, :import_request_id], unique: true, name: "index_import_request_transitions_on_sort_key_and_request_id"
  end
end

Version data entries

76 entries across 76 versions & 18 rubygems

Version Path
enju_question-0.2.0 spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb
enju_purchase_request-0.2.0 spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb
enju_question-0.2.0.beta.4 spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb
enju_purchase_request-0.2.0.beta.2 spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb
enju_question-0.2.0.beta.3 spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb
enju_question-0.2.0.beta.2 spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb
enju_question-0.2.0.beta.1 spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb
enju_purchase_request-0.1.1 spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb
enju_question-0.1.1 spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb
enju_question-0.1.0 spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb
enju_purchase_request-0.1.0 spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb
enju_purchase_request-0.1.0.pre15 spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb
enju_question-0.1.0.pre15 spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb
enju_purchase_request-0.1.0.pre14 spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb
enju_purchase_request-0.1.0.pre13 spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb
enju_question-0.1.0.pre14 spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb
enju_biblio-0.1.0.pre62 db/migrate/20140519171220_create_import_request_transitions.rb
enju_bookmark-0.1.2.pre20 spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb
enju_bookmark-0.1.2.pre19 spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb
enju_library-0.1.0.pre38 spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb