Sha256: 61f0d52e7c065a15c0342551771fab758225ffcfcacfe26d78d096b396eea85b

Contents?: true

Size: 617 Bytes

Versions: 3

Compression:

Stored size: 617 Bytes

Contents

class CreateResourceImportFileTransitions < ActiveRecord::Migration[4.2]
  def change
    create_table :resource_import_file_transitions do |t|
      t.string :to_state
      t.text :metadata, default: "{}"
      t.integer :sort_key
      t.integer :resource_import_file_id
      t.timestamps
    end

    add_index :resource_import_file_transitions, :resource_import_file_id, name: "index_resource_import_file_transitions_on_file_id"
    add_index :resource_import_file_transitions, %i[sort_key resource_import_file_id], unique: true, name: "index_resource_import_file_transitions_on_sort_key_and_file_id"
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
enju_question-0.3.1 spec/dummy/db/migrate/20140519170214_create_resource_import_file_transitions.rb
enju_question-0.3.0 spec/dummy/db/migrate/20140519170214_create_resource_import_file_transitions.rb
enju_question-0.3.0.beta.1 spec/dummy/db/migrate/20140519170214_create_resource_import_file_transitions.rb