So one final thing we need to take care of is to add to our migration's something that will seed the
rooms table.
So when we deploy this or rerun our migrations, that we don't have to go in and manually add the tables
or the rooms to the rooms table.
So that's pretty simple.
So I'm going to make sure I'm in the correct directory and I am and I will just say so to generate.
And this time I'm going to generate as a single file, seed rooms, table or whatever you want to call
your migration.
So that generates technophiles and I will go to the up migration.
And what I could do here is I could just manually type an insert statement for each of the rooms that
are in my database right now.
But I'm going to cheat.
I'm going to go over to Beaver and I'm going to go to schemas tables, rooms, and then I'll select
both of these rooms.
Right.
Click on them and choose advance copy, copy as sequel and go back to my migration and just paste that
in.
And now those are actually there and my down migration will be as simple as delete from rooms and that
should do it so I can run those migrations and I'm not going to run them right now because they're actually
already in my database table, but they're all set to go.
And now when we run our migrations down and up, we don't have to worry about going in and adding this
information by hand.