Open alexbeletsky opened 11 years ago
Here are some source references for how the rakefile works: https://github.com/amirrajan/Oak/blob/master/Sample%20Apps/TaskRabbits/Rakefile.rb#L65 https://github.com/amirrajan/Oak/blob/master/Sample%20Apps/TaskRabbits/Rakefile.rb#L85
As your solution grows, you may want to move schema generation it no a separate console app like this: Rake task to generate schema: https://github.com/amirrajan/Oak/blob/master/Sample%20Apps/BorrowedGames/Rakefile.rb#L147 https://github.com/amirrajan/Oak/blob/master/Sample%20Apps/BorrowedGames/Rakefile.rb#L163
Console app: https://github.com/amirrajan/Oak/blob/master/Sample%20Apps/BorrowedGames/BorrowedGames.SchemaGen/Program.cs#L26
I think I can add some response code analysis and show some suggestions to user of what might went wrong.
I accidentally deleted
SeedController
class and could not figure out why my db schema is not updated.rake reset
has very few information of what's actually wrong. Adding some user friendly information would be really nice.Btw, I did not found implementation of
rake reset
would be nice if you point that out.