Sha256: 58a91c20acd48f1a30c059ed55f4a7d58f99c6fb24158c58664130b0352c86c0

Contents?: true

Size: 306 Bytes

Versions: 7

Compression:

Stored size: 306 Bytes

Contents

class CreateUserRoles < ActiveRecord::Migration
  def up
    create_table :user_roles do |t|
      t.integer :user_id, :null => false
      t.integer :role_id, :null => false

      t.timestamps
    end

    add_index :user_roles, [:user_id, :role_id]
 end

  def down
    drop_table :user_roles
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
simple_roles-0.0.12 db/migrate/001_create_user_roles.rb
simple_roles-0.0.11 db/migrate/001_create_user_roles.rb
simple_roles-0.0.10 db/migrate/001_create_user_roles.rb
simple_roles-0.0.9 db/migrate/001_create_user_roles.rb
simple_roles-0.0.8 db/migrate/001_create_user_roles.rb
simple_roles-0.0.7 db/migrate/001_create_user_roles.rb
simple_roles-0.0.6 db/migrate/001_create_user_roles.rb