Masonite: Migrations for production data

67 Views Asked by At

Actually, I can't import Masonite's models properly inside my migration file. I want to create pre-registered data as database seeds. How can I do that?

1

There are 1 best solutions below

0
Junior Gantin On BEST ANSWER

Make a __init__.py file in your migrations directory and put this in it:

import os
import sys
sys.path.append(os.getcwd())