Sha256: f920a091ee8328d4a5be3d2fb3e93216e14141e3d62dde2d6a610350c9d0ac39

Contents?: true

Size: 272 Bytes

Versions: 353

Compression:

Stored size: 272 Bytes

Contents

class CreateUserHasRoles < ActiveRecord::Migration
  def change
    create_table :user_has_roles do |t|
      t.integer :user_id
      t.integer :role_id

      t.timestamps
    end
    add_index :user_has_roles, :user_id
    add_index :user_has_roles, :role_id
  end
end

Version data entries

353 entries across 347 versions & 23 rubygems

Version Path
enju_leaf-1.2.2 spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb
enju_manifestation_viewer-0.2.4 spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb
enju_library-0.2.5 spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb
enju_manifestation_viewer-0.2.3 spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb
enju_biblio-0.2.5 spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb
enju_bookmark-0.2.2 spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb
enju_purchase_request-0.2.1 spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb
enju_inter_library_loan-0.2.0 spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb
enju_message-0.2.4 spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb
enju_event-0.2.3 spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb
enju_circulation-0.2.5 spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb
enju_biblio-0.2.4 spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb
enju_subject-0.2.3 spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb
enju_manifestation_viewer-0.2.2 spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb
enju_library-0.2.4 spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb
enju_message-0.2.3 spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb
enju_event-0.2.2 spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb
enju_circulation-0.2.4 spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb
enju_nii-0.2.1 spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb
enju_bookmark-0.2.1 spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb