-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove seed migrations gem and start new seeding system #1480
Conversation
This is maybe a bit in the weeds but it would be very nice to have a sketch map of Normal Island you can refer to when reasoning about PlaceCal - sounds silly but I think having a concrete visualisation will help people no end |
This was mainly so I could actually run PlaceCal without having a production data dump, which I realised was why I was stuck in a redirection loop. |
Looks like this is where Neighbourhoods get loaded in |
Ok but this pr and the linked tickets are explicitly not addressing neighbourhoods, it's just getting a basic seed system up and running |
Hmm perhaps I am misunderstanding terminology here: to me seeding a database is where you have nothing in the db and load all the sample data in that a dev will typically need day to day. So we assume the migration populates neighbourhood and then never touch that table again? Okay. Perhaps the original issue could describe what needs to be seeded like:
|
I don't think you're misunderstanding, you're just trying to fix everything in one go. The goal here is to just improve it on how it is now - i.e. take out the seed migrations gem and make seeding a user actually work. We don't have to eat the whole elephant in one bite! Each of those other steps is correct but is an additional ticket. |
`rails db:info` will now print out Rails configuration and table counts.
3c38f16
to
b564d8c
Compare
Just so you know if you run |
Ahh that's a big gotcha and we should add a warning for that. I don't think this needs any extra features tho! We can just merge it when the tests pass. We should be adding the seed files a bit more conciously IMO. |
- Only make one user, activates devise - Only one site, the default site - No tag seeding
Closed but remade in other PR to avoid annoying git issues |
Start of work against: