Sha256: 6dc6bcb9014d9f1008427fadefea7f5d92935694f930b589abab0439bc384443

Contents?: true

Size: 577 Bytes

Versions: 72

Compression:

Stored size: 577 Bytes

Contents

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

    add_index :user_export_file_transitions, :user_export_file_id, name: "index_user_export_file_transitions_on_file_id"
    add_index :user_export_file_transitions, [:sort_key, :user_export_file_id], unique: true, name: "index_user_export_file_transitions_on_sort_key_and_file_id"
  end
end

Version data entries

72 entries across 72 versions & 18 rubygems

Version Path
enju_question-0.2.0.beta.2 spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb
enju_question-0.2.0.beta.1 spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb
enju_news-0.1.1 spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb
enju_purchase_request-0.1.1 spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb
enju_question-0.1.1 spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb
enju_news-0.1.0 spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb
enju_question-0.1.0 spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb
enju_purchase_request-0.1.0 spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb
enju_purchase_request-0.1.0.pre15 spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb
enju_question-0.1.0.pre15 spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb
enju_news-0.1.0.pre9 spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb
enju_purchase_request-0.1.0.pre14 spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb
enju_purchase_request-0.1.0.pre13 spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb
enju_news-0.1.0.pre8 spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb
enju_question-0.1.0.pre14 spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb
enju_biblio-0.1.0.pre62 spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb
enju_bookmark-0.1.2.pre20 spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb
enju_bookmark-0.1.2.pre19 spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb
enju_library-0.1.0.pre38 spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb
enju_purchase_request-0.1.0.pre12 spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb