Sha256: 667a4fcc93335ab16c9446d5db70c550fe54951f8bc434a705fb430080191551

Contents?: true

Size: 266 Bytes

Versions: 103

Compression:

Stored size: 266 Bytes

Contents

class CreateRoles < ActiveRecord::Migration[4.2]
  def change
    create_table :spotlight_roles do |t|
      t.references :exhibit
      t.references :user
      t.string :role
    end

    add_index :spotlight_roles, [:exhibit_id, :user_id], unique: true
  end
end

Version data entries

103 entries across 103 versions & 1 rubygems

Version Path
blacklight-spotlight-4.3.6 db/migrate/20140128155152_create_roles.rb
blacklight-spotlight-4.3.5 db/migrate/20140128155152_create_roles.rb
blacklight-spotlight-4.3.4 db/migrate/20140128155152_create_roles.rb
blacklight-spotlight-4.3.3 db/migrate/20140128155152_create_roles.rb
blacklight-spotlight-4.3.2 db/migrate/20140128155152_create_roles.rb
blacklight-spotlight-4.3.1 db/migrate/20140128155152_create_roles.rb
blacklight-spotlight-4.3.0 db/migrate/20140128155152_create_roles.rb
blacklight-spotlight-4.2.0 db/migrate/20140128155152_create_roles.rb
blacklight-spotlight-4.1.2 db/migrate/20140128155152_create_roles.rb
blacklight-spotlight-4.1.1 db/migrate/20140128155152_create_roles.rb
blacklight-spotlight-4.1.0 db/migrate/20140128155152_create_roles.rb
blacklight-spotlight-4.0.3 db/migrate/20140128155152_create_roles.rb
blacklight-spotlight-4.0.2 db/migrate/20140128155152_create_roles.rb
blacklight-spotlight-4.0.1 db/migrate/20140128155152_create_roles.rb
blacklight-spotlight-4.0.0 db/migrate/20140128155152_create_roles.rb
blacklight-spotlight-3.6.0.beta10 db/migrate/20140128155152_create_roles.rb
blacklight-spotlight-3.6.0.beta9 db/migrate/20140128155152_create_roles.rb
blacklight-spotlight-3.6.0.beta8 db/migrate/20140128155152_create_roles.rb
blacklight-spotlight-3.5.0.4 db/migrate/20140128155152_create_roles.rb
blacklight-spotlight-3.6.0.beta7 db/migrate/20140128155152_create_roles.rb