Now that Ecto 2.0 has been released, I thought I would revisit this issue. Listing all the Ecto specific Mix tasks, I get:
*mix ecto # Prints Ecto help information* *mix ecto.create # Creates the repository storage* *mix ecto.drop # Drops the repository storage* *mix ecto.dump # Dumps the repository database structure* *mix ecto.gen.migration # Generates a new migration for the repo* *mix ecto.gen.repo # Generates a new repository* *mix ecto.load # Loads previously dumped database structure* *mix ecto.migrate # Runs the repository migrations* *mix ecto.migrations # Displays the repository migration status* *mix ecto.rollback # Rolls back the repository migrations* I've looked through the various options and cannot seem to find the Rails equivalent of 'rake db:schema:load'. Am I missing the right way to invoke this in Ecto, or did this get pushed out to a future version? Thanks. On Friday, January 22, 2016 at 12:05:45 AM UTC-8, José Valim wrote: > > There isn't such Ecto but it will likely be in Ecto 2.0 (there is already > a pull request for it). > > > > *José Valim* > www.plataformatec.com.br > Skype: jv.ptec > Founder and Director of R&D > > On Fri, Jan 22, 2016 at 3:26 AM, David Escobar <davidesc...@gmail.com > <javascript:>> wrote: > >> Hi everyone, I come from a Ruby and Rails background, and I'm currently >> using Phoenix with Ecto. >> >> In Rails, we have a Rake task for recreating the entire database schema >> on new systems: >> *rake db:schema:load* >> >> As it says in the auto-generated *schema.rb*, this is better than >> running all existing migrations from scratch as errors may accumulate over >> time, particularly if there are any specific data migrations. Performance >> is also a consideration after a while. >> >> There doesn't seem to be an equivalent way to do this in Ecto. There is >> only *mix ecto.migrate*. Is there an equivalent way of just loading the >> schema as in Rails? Thanks. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "elixir-lang-talk" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to elixir-lang-ta...@googlegroups.com <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/elixir-lang-talk/c74e1a87-210e-41c3-b576-d75047306f0f%40googlegroups.com >> >> <https://groups.google.com/d/msgid/elixir-lang-talk/c74e1a87-210e-41c3-b576-d75047306f0f%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "elixir-lang-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-talk+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-talk/18e07e68-2365-4a89-8d5a-5cc30fb710bb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.