Sha256: 45df9d88adccde1dad3129d268e3c5a00793d5d965ba166b25cd4001a244d8c8

Contents?: true

Size: 682 Bytes

Versions: 15

Compression:

Stored size: 682 Bytes

Contents

class CreateOperations < ActiveRecord::Migration[4.2]
  def change
    create_table :curation_concerns_operations do |t|
      t.string :status
      t.string :operation_type
      t.string :job_class
      t.string :job_id
      t.string :type # For Single Table Inheritance
      t.text :message
      t.references :user, index: true, foreign_key: true

      t.integer :parent_id, null: true, index: true
      t.integer :lft, null: false, index: true
      t.integer :rgt, null: false, index: true

      # optional fields
      t.integer :depth, null: false, default: 0
      t.integer :children_count, null: false, default: 0

      t.timestamps null: false
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
hyrax-1.1.1 db/migrate/20160427155928_create_operations.rb
hyrax-1.1.0 db/migrate/20160427155928_create_operations.rb
hyrax-2.0.0 db/migrate/20160427155928_create_operations.rb
hyrax-2.0.0.rc3 db/migrate/20160427155928_create_operations.rb
hyrax-2.0.0.rc2 db/migrate/20160427155928_create_operations.rb
hyrax-2.0.0.rc1 db/migrate/20160427155928_create_operations.rb
hyrax-1.0.5 db/migrate/20160427155928_create_operations.rb
hyrax-2.0.0.beta5 db/migrate/20160427155928_create_operations.rb
hyrax-2.0.0.beta4 db/migrate/20160427155928_create_operations.rb
hyrax-2.0.0.beta3 db/migrate/20160427155928_create_operations.rb
hyrax-2.0.0.beta2 db/migrate/20160427155928_create_operations.rb
hyrax-2.0.0.beta1 db/migrate/20160427155928_create_operations.rb
hyrax-1.0.4 db/migrate/20160427155928_create_operations.rb
hyrax-1.0.3 db/migrate/20160427155928_create_operations.rb
hyrax-1.0.2 db/migrate/20160427155928_create_operations.rb