Sha256: df0662c67c6cfb5eed31e94df0f0d58529072678226d5f60dc814b7c2c91cd78

Contents?: true

Size: 287 Bytes

Versions: 84

Compression:

Stored size: 287 Bytes

Contents

class CreateUserHasRoles < ActiveRecord::Migration[4.2]
  def change
    create_table :user_has_roles do |t|
      t.references :user, index: true, foreign_key: true, null: false
      t.references :role, index: true, foreign_key: true, null: false

      t.timestamps
    end
  end
end

Version data entries

84 entries across 84 versions & 12 rubygems

Version Path
enju_biblio-0.3.18 spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb
enju_biblio-0.3.17 spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb
enju_biblio-0.3.16 spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb
enju_circulation-0.3.11 spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb
enju_biblio-0.3.15 spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb
enju_library-0.3.11 spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb
enju_subject-0.3.4 spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb
enju_circulation-0.3.10 spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb
enju_library-0.3.10 spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb
enju_biblio-0.3.14 spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb
enju_message-0.3.4 spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb
enju_event-0.3.5 spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb
enju_seed-0.3.6 db/migrate/20100606065209_create_user_has_roles.rb
enju_biblio-0.3.13 spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb
enju_circulation-0.3.9 spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb
enju_biblio-0.3.12 spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb
enju_oai-0.3.1 spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb
enju_biblio-0.3.11 spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb
enju_library-0.3.9 spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb
enju_subject-0.3.3 spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb