Sha256: 284b7be04ff26623521022014c7ea004d659666573ecfa4ffdf2bbfda9af68b4

Contents?: true

Size: 669 Bytes

Versions: 66

Compression:

Stored size: 669 Bytes

Contents

class CreateEventImportFileTransitions < ActiveRecord::Migration[4.2]
  def change
    create_table :event_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 :event_import_file_id
      t.timestamps
    end

    add_index :event_import_file_transitions, :event_import_file_id
    add_index :event_import_file_transitions, [:sort_key, :event_import_file_id], unique: true, name: "index_event_import_file_transitions_on_sort_key_and_file_id"
  end
end

Version data entries

66 entries across 66 versions & 7 rubygems

Version Path
enju_event-0.3.3 db/migrate/20140523171309_create_event_import_file_transitions.rb
enju_circulation-0.3.7 spec/dummy/db/migrate/20140523171309_create_event_import_file_transitions.rb
enju_library-0.3.6 spec/dummy/db/migrate/20140523171309_create_event_import_file_transitions.rb
enju_library-0.4.0.beta.4 spec/dummy/db/migrate/20140523171309_create_event_import_file_transitions.rb
enju_circulation-0.4.0.beta.4 spec/dummy/db/migrate/20140523171309_create_event_import_file_transitions.rb
enju_circulation-0.4.0.beta.3 spec/dummy/db/migrate/20140523171309_create_event_import_file_transitions.rb
enju_biblio-0.4.0.beta.2 spec/dummy/db/migrate/20140523171309_create_event_import_file_transitions.rb
enju_library-0.4.0.beta.3 spec/dummy/db/migrate/20140523171309_create_event_import_file_transitions.rb
enju_message-0.4.0.beta.2 spec/dummy/db/migrate/20140523171309_create_event_import_file_transitions.rb
enju_circulation-0.3.6 spec/dummy/db/migrate/20140523171309_create_event_import_file_transitions.rb
enju_circulation-0.4.0.beta.2 spec/dummy/db/migrate/20140523171309_create_event_import_file_transitions.rb
enju_library-0.4.0.beta.2 spec/dummy/db/migrate/20140523171309_create_event_import_file_transitions.rb
enju_ndl-0.4.0.beta.1 spec/dummy/db/migrate/20140523171309_create_event_import_file_transitions.rb
enju_circulation-0.4.0.beta.1 spec/dummy/db/migrate/20140523171309_create_event_import_file_transitions.rb
enju_event-0.4.0.beta.1 db/migrate/20140523171309_create_event_import_file_transitions.rb
enju_message-0.4.0.beta.1 spec/dummy/db/migrate/20140523171309_create_event_import_file_transitions.rb
enju_biblio-0.4.0.beta.1 spec/dummy/db/migrate/20140523171309_create_event_import_file_transitions.rb
enju_library-0.4.0.beta.1 spec/dummy/db/migrate/20140523171309_create_event_import_file_transitions.rb
enju_circulation-0.3.5 spec/dummy/db/migrate/20140523171309_create_event_import_file_transitions.rb
enju_library-0.3.5 spec/dummy/db/migrate/20140523171309_create_event_import_file_transitions.rb