Sha256: 0b0844e48ef2ab779e92c2e76b99f6550a13136154fb70d4d0a0985911e2908f

Contents?: true

Size: 656 Bytes

Versions: 238

Compression:

Stored size: 656 Bytes

Contents

class CreateUserImportFileTransitions < ActiveRecord::Migration
  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.integer :user_import_file_id
      t.timestamps
    end

    add_index :user_import_file_transitions, :user_import_file_id
    add_index :user_import_file_transitions, [: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

238 entries across 235 versions & 22 rubygems

Version Path
enju_circulation-0.2.0.beta.3 spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb
enju_message-0.2.0.beta.4 spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb
enju_library-0.2.0.beta.9 db/migrate/20140524074813_create_user_import_file_transitions.rb
enju_leaf-1.2.0.beta.3 spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb
enju_seed-0.2.0.beta.6 spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb
enju_manifestation_viewer-0.2.0.beta.3 spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb
enju_subject-0.2.0.beta.3 spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb
enju_question-0.2.0.beta.3 spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb
enju_bookmark-0.2.0.beta.3 spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb
enju_library-0.2.0.beta.8 db/migrate/20140524074813_create_user_import_file_transitions.rb
enju_library-0.2.0.beta.7 db/migrate/20140524074813_create_user_import_file_transitions.rb
enju_library-0.2.0.beta.6 db/migrate/20140524074813_create_user_import_file_transitions.rb
enju_event-0.2.0.beta.3 spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb
enju_message-0.2.0.beta.3 spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb
enju_biblio-0.2.0.beta.3 spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb
enju_loc-0.2.0.beta.2 spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb
enju_oai-0.2.0.beta.2 spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb
enju_inventory-0.2.0.beta.2 spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb
enju_library-0.2.0.beta.5 db/migrate/20140524074813_create_user_import_file_transitions.rb
enju_nii-0.2.0.beta.2 spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb