Sha256: 049a79888864dc9a946f5fbdb56b3841accddcdd53dbe84f54174780632ee0ca

Contents?: true

Size: 334 Bytes

Versions: 8

Compression:

Stored size: 334 Bytes

Contents

class CreateFamilyGalleryUserRoles < ActiveRecord::Migration
  def change
    create_table :family_gallery_user_roles do |t|
      t.belongs_to :user
      t.string :role
      t.timestamps
    end

    add_index :family_gallery_user_roles, :user_id
    add_index :family_gallery_user_roles, [:user_id, :role], unique: true
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
family_gallery-0.0.8 db/plugin_migrate/20150224180931_create_family_gallery_user_roles.rb
family_gallery-0.0.7 db/plugin_migrate/20150224180931_create_family_gallery_user_roles.rb
family_gallery-0.0.6 db/plugin_migrate/20150224180931_create_family_gallery_user_roles.rb
family_gallery-0.0.5 db/plugin_migrate/20150224180931_create_family_gallery_user_roles.rb
family_gallery-0.0.4 db/plugin_migrate/20150224180931_create_family_gallery_user_roles.rb
family_gallery-0.0.3 db/plugin_migrate/20150224180931_create_family_gallery_user_roles.rb
family_gallery-0.0.2 db/plugin_migrate/20150224180931_create_family_gallery_user_roles.rb
family_gallery-0.0.1 db/plugin_migrate/20150224180931_create_family_gallery_user_roles.rb