I want to create several tables with FK on one table. Messing with foreign constraints which are fail on table creation on up
method in migrations.
Obviously I should add foreign key only when FK destination table was created, so should I create new migration for each database manipulation, i.e. every time I need to add foreign key ?
or should I use if (Schema::hasTable('Drug')) { ... }
approach ?
via Anonymous