Sha256: 2a3df8f967501cf977e15ad9ba17a4224324471127b0fca890d8fee8febcfc6f

Contents?: true

Size: 607 Bytes

Versions: 23

Compression:

Stored size: 607 Bytes

Contents

class CreateUserImportFileTransitions < ActiveRecord::Migration[4.2]
  def change
    create_table :user_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.references :user_import_file, index: true
      t.timestamps
    end

    add_index :user_import_file_transitions, %i[sort_key user_import_file_id], unique: true, name: "index_user_import_file_transitions_on_sort_key_and_file_id"
  end
end

Version data entries

23 entries across 23 versions & 3 rubygems

Version Path
enju_leaf-1.3.6 spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb
enju_leaf-1.3.5 spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb
enju_manifestation_viewer-0.3.5 spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb
enju_leaf-1.3.4 spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb
enju_leaf-1.3.4.rc.2 spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb
enju_leaf-1.3.4.rc.1 spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb
enju_manifestation_viewer-0.3.4 spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb
enju_leaf-1.3.3.1 spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb
enju_leaf-1.3.3 spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb
enju_manifestation_viewer-0.3.3 spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb
enju_leaf-1.3.2 spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb
enju_manifestation_viewer-0.3.2 spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb
enju_biblio-0.3.2 spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb
enju_leaf-1.3.1 spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb
enju_biblio-0.3.1 spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb
enju_manifestation_viewer-0.3.1 spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb
enju_leaf-1.3.0 spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb
enju_manifestation_viewer-0.3.0 spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb
enju_biblio-0.3.0 spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb
enju_leaf-1.3.0.rc.1 spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb