Now that we've added a new model to our app we need to run the migration so
Django can create the migrations file for creating the necessary database
tables for our model so open up the terminal or the git bash window and make
sure the vagrant server is running by typing vagrant up
once the vagrant
server's running type vagrant ssh to connect and then type cd
forward slash vagrant to switch to the vagrant directory then let's activate
our virtual environment by typing source tilde forward slash env forward slash bin forward slash
activate hit enter and then we run our migrations by typing Python manage dot py
make migrations this runs the Python make migrations command with django
you can see after we ran it that it said created model profile feed item you can
also see that in our project we have a new file added to the migrations and
this contains the migration file that will create our model in the database
you see it creates a new model with the name profile feed item and it adds the
appropriate fields to the model to represent our model here so this will
create the table in the database for our profile feed item model
okay so now
let's go ahead and run this migration to make the changes to the database so the
make migrations only creates the migration file you need to apply the
changes to the database by typing python manage dot py migrate once you hit enter
it will go ahead and apply the new migration to our database and update our
sql Lite database to reflect the changes
so that's all we need to do
thank you for watching and I'll see you in the next video