1$table->foreignId('user_id')
2 ->constrained("users") <- // You don't need to specify table if it matched laravel naming conventions.
3 ->onUpdate('cascade')
4 ->onDelete('cascade');
1Add it in two steps, and its good to make it unsigned too:
2public function up()
3{
4 Schema::create('priorities', function($table) {
5 $table->increments('id', true);
6 $table->integer('user_id')->unsigned();
7 $table->foreign('user_id')->references('id')->on('users');
8 $table->string('priority_name');
9 $table->smallInteger('rank');
10 $table->text('class');
11 $table->timestamps('timecreated');
12 });
13}
14
15if still same error try removing unsigned() from the above code