class CreateAdminAssignments < ActiveRecord::Migration[5.0] def change create_table "admin_assignments" do |t| t.integer "user_id", limit: 4, null: false t.integer "job_definition_id", limit: 4, null: false t.datetime "created_at" t.datetime "updated_at" end add_index "admin_assignments", ["user_id", "job_definition_id"], name: "user_id", unique: true, using: :btree end end