So just like we had to sit around the table with our migration's, we also have to seat our restrictions
table with our migration's, so we'll just follow the same steps.
So I'll open a terminal window, make sure I'm in the correct directory.
I am so to generate and again, I'll generate sequel speed restrictions table and that will generate
two files.
I will close this, open up the up table, the up migration, go over to Dvir, find the restrictions
table and look at the content.
And there it is again.
I'll select both the records and I will go turn to copy advanced copy copy as sequel and I go back to
my migration pace.
Get in there and that should be it for that one.
And the down migration is just delete from restrictions.
All right.
And that should do it.
And again, I'm not going to bother running this because I already have values in the database.
But if you want to test it, just go delete those two records from the restrictions table and run the
migration and life will be good.
But bear in mind, though, that if you do delete those values from the restrictions, table, the database
keys, the foreign keys will delete anything that's in your reservations or restrictions tables.
But if you want to test it, go right to town.