Skip to content

Commit

Permalink
unique name
Browse files Browse the repository at this point in the history
  • Loading branch information
kjjdion committed Mar 11, 2019
1 parent 0b2fe58 commit d5249ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/stubs/crud/migration.stub
Expand Up @@ -11,7 +11,7 @@ class Create{model_classes}Table extends Migration
// create table
Schema::create('{model_variables}', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->string('name')->unique();
$table->timestamps();
});
}
Expand Down

0 comments on commit d5249ee

Please sign in to comment.