Joe Van Dyk
2006-Feb-05 18:03 UTC
[Rails] Continuous Integration question (not CIA question)
On 2/5/06, Joe Van Dyk <joevandyk@gmail.com> wrote:> On 2/4/06, Jonathan Weiss <jw@innerewut.de> wrote: > > Joe Van Dyk wrote: > > > Hi, > > > > > > I''d like to set up CIA. So I added the plugin to my app, went to my > > > subversion server, added the post commit, added a build directory. > > > > > > I checked out the code in the build directory on the svn server. > > > However, running rake on it fails, because the test database is empty > > > (i.e. no tables, so fixtures don''t load). > > > > > > What''s the solution here? > > > > > > rake clone_schema_to_test > > # Recreate the test database from the current environment''s database schema. > > > > rake clone_structure_to_test > > # Recreate the test databases from the development structure > > So, I have to have a schema.rb or a development_structure.sql file > available? I don''t have any, it''s all based on migrations now. > > And, if I want to change how CIA works with regards to migrations, I > have to dive into the source to change the default rake tasks?Oops, I''m referring to the continuous_integration plugin, not CIA. Sorry.
Jarkko Laine
2006-Feb-06 08:53 UTC
[Rails] Continuous Integration question (not CIA question)
On 5.2.2006, at 20.03, Joe Van Dyk wrote:>> >> So, I have to have a schema.rb or a development_structure.sql file >> available? I don''t have any, it''s all based on migrations now. >> >> And, if I want to change how CIA works with regards to migrations, I >> have to dive into the source to change the default rake tasks? > > > Oops, I''m referring to the continuous_integration plugin, not CIA. > Sorry.Joe, schema.rb is actually part of the migrations system, iirc it''s updated upon every migration. //jarkko
Joe Van Dyk
2006-Feb-07 15:23 UTC
[Rails] Continuous Integration question (not CIA question)
On 2/6/06, Jarkko Laine <jarkko@jlaine.net> wrote:> On 5.2.2006, at 20.03, Joe Van Dyk wrote: > >> > >> So, I have to have a schema.rb or a development_structure.sql file > >> available? I don''t have any, it''s all based on migrations now. > >> > >> And, if I want to change how CIA works with regards to migrations, I > >> have to dive into the source to change the default rake tasks? > > > > > > Oops, I''m referring to the continuous_integration plugin, not CIA. > > Sorry. > > Joe, > > schema.rb is actually part of the migrations system, iirc it''s > updated upon every migration. > > //jarkkoSo it needs to be in version control in order for the continuous_integration plugin to work?