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.9.5 lib/generators/hyrax/templates/db/migrate/20170808160431_create_collection_types.rb.erb
hyrax-3.0.2 lib/generators/hyrax/templates/db/migrate/20170808160431_create_collection_types.rb.erb
hyrax-3.0.1 lib/generators/hyrax/templates/db/migrate/20170808160431_create_collection_types.rb.erb
hyrax-3.0.0 lib/generators/hyrax/templates/db/migrate/20170808160431_create_collection_types.rb.erb
hyrax-3.0.0.pre.rc4 lib/generators/hyrax/templates/db/migrate/20170808160431_create_collection_types.rb.erb
hyrax-2.9.4 lib/generators/hyrax/templates/db/migrate/20170808160431_create_collection_types.rb.erb
hyrax-3.0.0.pre.rc3 lib/generators/hyrax/templates/db/migrate/20170808160431_create_collection_types.rb.erb
hyrax-2.9.3 lib/generators/hyrax/templates/db/migrate/20170808160431_create_collection_types.rb.erb
hyrax-2.9.2 lib/generators/hyrax/templates/db/migrate/20170808160431_create_collection_types.rb.erb
hyrax-2.9.1 lib/generators/hyrax/templates/db/migrate/20170808160431_create_collection_types.rb.erb
hyrax-2.9.0 lib/generators/hyrax/templates/db/migrate/20170808160431_create_collection_types.rb.erb
hyrax-3.0.0.pre.rc2 lib/generators/hyrax/templates/db/migrate/20170808160431_create_collection_types.rb.erb
hyrax-2.8.0 lib/generators/hyrax/templates/db/migrate/20170808160431_create_collection_types.rb.erb
hyrax-2.7.2 lib/generators/hyrax/templates/db/migrate/20170808160431_create_collection_types.rb.erb
hyrax-2.7.1 lib/generators/hyrax/templates/db/migrate/20170808160431_create_collection_types.rb.erb
hyrax-2.7.0 lib/generators/hyrax/templates/db/migrate/20170808160431_create_collection_types.rb.erb
hyrax-2.6.0 lib/generators/hyrax/templates/db/migrate/20170808160431_create_collection_types.rb.erb
hyrax-3.0.0.pre.rc1 lib/generators/hyrax/templates/db/migrate/20170808160431_create_collection_types.rb.erb
hyrax-3.0.0.pre.beta3 lib/generators/hyrax/templates/db/migrate/20170808160431_create_collection_types.rb.erb
hyrax-2.5.1 lib/generators/hyrax/templates/db/migrate/20170808160431_create_collection_types.rb.erb