1
00:00:01,250 --> 00:00:06,080
So just like we had to sit around the table with our migration's, we also have to seat our restrictions

2
00:00:06,080 --> 00:00:09,080
table with our migration's, so we'll just follow the same steps.

3
00:00:09,530 --> 00:00:12,730
So I'll open a terminal window, make sure I'm in the correct directory.

4
00:00:12,740 --> 00:00:22,370
I am so to generate and again, I'll generate sequel speed restrictions table and that will generate

5
00:00:22,370 --> 00:00:23,180
two files.

6
00:00:23,180 --> 00:00:32,630
I will close this, open up the up table, the up migration, go over to Dvir, find the restrictions

7
00:00:32,930 --> 00:00:35,120
table and look at the content.

8
00:00:35,660 --> 00:00:36,860
And there it is again.

9
00:00:36,860 --> 00:00:46,700
I'll select both the records and I will go turn to copy advanced copy copy as sequel and I go back to

10
00:00:46,700 --> 00:00:48,730
my migration pace.

11
00:00:48,740 --> 00:00:52,970
Get in there and that should be it for that one.

12
00:00:52,970 --> 00:00:57,920
And the down migration is just delete from restrictions.

13
00:00:58,850 --> 00:00:59,270
All right.

14
00:00:59,270 --> 00:01:00,160
And that should do it.

15
00:01:00,290 --> 00:01:04,220
And again, I'm not going to bother running this because I already have values in the database.

16
00:01:04,220 --> 00:01:08,090
But if you want to test it, just go delete those two records from the restrictions table and run the

17
00:01:08,090 --> 00:01:10,340
migration and life will be good.

18
00:01:10,350 --> 00:01:17,060
But bear in mind, though, that if you do delete those values from the restrictions, table, the database

19
00:01:17,270 --> 00:01:23,540
keys, the foreign keys will delete anything that's in your reservations or restrictions tables.

20
00:01:23,990 --> 00:01:26,090
But if you want to test it, go right to town.
