Sha256: fc1af9a77899e3b2a0a845e6ee2c421594f1e6fc43576bad2d820881f7acd4e3

Contents?: true

Size: 701 Bytes

Versions: 64

Compression:

Stored size: 701 Bytes

Contents

class CreateOperations < ActiveRecord::Migration<%= migration_version %>
  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

64 entries across 64 versions & 1 rubygems

Version Path
hyrax-5.0.1 lib/generators/hyrax/templates/db/migrate/20160427155928_create_operations.rb.erb
hyrax-5.0.0 lib/generators/hyrax/templates/db/migrate/20160427155928_create_operations.rb.erb
hyrax-5.0.0.rc3 lib/generators/hyrax/templates/db/migrate/20160427155928_create_operations.rb.erb
hyrax-5.0.0.rc2 lib/generators/hyrax/templates/db/migrate/20160427155928_create_operations.rb.erb
hyrax-5.0.0.rc1 lib/generators/hyrax/templates/db/migrate/20160427155928_create_operations.rb.erb
hyrax-3.6.0 lib/generators/hyrax/templates/db/migrate/20160427155928_create_operations.rb.erb
hyrax-4.0.0 lib/generators/hyrax/templates/db/migrate/20160427155928_create_operations.rb.erb
hyrax-4.0.0.rc3 lib/generators/hyrax/templates/db/migrate/20160427155928_create_operations.rb.erb
hyrax-4.0.0.rc2 lib/generators/hyrax/templates/db/migrate/20160427155928_create_operations.rb.erb
hyrax-4.0.0.rc1 lib/generators/hyrax/templates/db/migrate/20160427155928_create_operations.rb.erb
hyrax-3.5.0 lib/generators/hyrax/templates/db/migrate/20160427155928_create_operations.rb.erb
hyrax-4.0.0.beta2 lib/generators/hyrax/templates/db/migrate/20160427155928_create_operations.rb.erb
hyrax-3.4.2 lib/generators/hyrax/templates/db/migrate/20160427155928_create_operations.rb.erb
hyrax-4.0.0.beta1 lib/generators/hyrax/templates/db/migrate/20160427155928_create_operations.rb.erb
hyrax-3.4.1 lib/generators/hyrax/templates/db/migrate/20160427155928_create_operations.rb.erb
hyrax-3.4.0 lib/generators/hyrax/templates/db/migrate/20160427155928_create_operations.rb.erb
hyrax-3.3.0 lib/generators/hyrax/templates/db/migrate/20160427155928_create_operations.rb.erb
hyrax-3.2.0 lib/generators/hyrax/templates/db/migrate/20160427155928_create_operations.rb.erb
hyrax-2.9.6 lib/generators/hyrax/templates/db/migrate/20160427155928_create_operations.rb.erb
hyrax-3.1.0 lib/generators/hyrax/templates/db/migrate/20160427155928_create_operations.rb.erb