Sha256: a096f1c47d97f8e650ff136a43f0f18a423eafd4251a7271a347bff1db2cde78

Contents?: true

Size: 687 Bytes

Versions: 61

Compression:

Stored size: 687 Bytes

Contents

class CreateCollectionTypes < ActiveRecord::Migration<%= migration_version %>
  def change
    create_table :hyrax_collection_types do |t|
      t.string :title
      t.text :description
      t.string :machine_id
      t.boolean :nestable, null: false, default: true
      t.boolean :discovery, null: false, default: true
      t.boolean :sharing, null: false, default: true
      t.boolean :multiple_membership, null: false, default: true
      t.boolean :require_membership, null: false, default: false
      t.boolean :workflow, null: false, default: false
      t.boolean :visibility, null: false, default: false
    end
    add_index :hyrax_collection_types, :machine_id
  end
end

Version data entries

61 entries across 61 versions & 1 rubygems

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