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-2.5.0 lib/generators/hyrax/templates/db/migrate/20170808160431_create_collection_types.rb.erb
hyrax-3.0.0.pre.beta2 lib/generators/hyrax/templates/db/migrate/20170808160431_create_collection_types.rb.erb
hyrax-2.4.1 lib/generators/hyrax/templates/db/migrate/20170808160431_create_collection_types.rb.erb
hyrax-3.0.0.pre.beta1 lib/generators/hyrax/templates/db/migrate/20170808160431_create_collection_types.rb.erb
hyrax-2.4.0 lib/generators/hyrax/templates/db/migrate/20170808160431_create_collection_types.rb.erb
hyrax-2.3.3 lib/generators/hyrax/templates/db/migrate/20170808160431_create_collection_types.rb.erb
hyrax-2.3.2 lib/generators/hyrax/templates/db/migrate/20170808160431_create_collection_types.rb.erb
hyrax-2.3.1 lib/generators/hyrax/templates/db/migrate/20170808160431_create_collection_types.rb.erb
hyrax-2.3.0 lib/generators/hyrax/templates/db/migrate/20170808160431_create_collection_types.rb.erb
hyrax-2.2.4 lib/generators/hyrax/templates/db/migrate/20170808160431_create_collection_types.rb.erb
hyrax-2.2.3 lib/generators/hyrax/templates/db/migrate/20170808160431_create_collection_types.rb.erb
hyrax-2.2.2 lib/generators/hyrax/templates/db/migrate/20170808160431_create_collection_types.rb.erb
hyrax-2.2.1 lib/generators/hyrax/templates/db/migrate/20170808160431_create_collection_types.rb.erb
hyrax-2.2.0 lib/generators/hyrax/templates/db/migrate/20170808160431_create_collection_types.rb.erb
hyrax-2.1.0 lib/generators/hyrax/templates/db/migrate/20170808160431_create_collection_types.rb.erb
hyrax-2.1.0.rc4 lib/generators/hyrax/templates/db/migrate/20170808160431_create_collection_types.rb.erb
hyrax-2.1.0.rc3 lib/generators/hyrax/templates/db/migrate/20170808160431_create_collection_types.rb.erb
hyrax-2.1.0.rc2 lib/generators/hyrax/templates/db/migrate/20170808160431_create_collection_types.rb.erb
hyrax-2.1.0.rc1 lib/generators/hyrax/templates/db/migrate/20170808160431_create_collection_types.rb.erb
hyrax-2.1.0.beta2 lib/generators/hyrax/templates/db/migrate/20170808160431_create_collection_types.rb.erb