search for: irreversiblemigrations

Displaying 5 results from an estimated 5 matches for "irreversiblemigrations".

Did you mean: irreversiblemigration
2006 Apr 06
3
Irreversible Migrations
Hi, To make a migration irreversable, one has to execute "raise IrreversibleMigration". This is how it''s documented everywhere. However, when I do that, I get this: rake aborted! uninitialized constant IrreversibleMigration This is the migration (the file is called 022_ldap_fix.rb): class LdapFix < ActiveRecord::Migration def self.up execute File.open(
2006 Mar 01
5
single transaction migrations
Hi! It seems that migration doesn''t use single transcation to execute the needed migrations for the database upgrade, so if I have database at version 5, and I wrote some migrations 6..10, and error occurs while executing migration 7, the database stays in state 6? I also think that migration taks could use some more verbosity, for example if migration fails, there''s no
2006 Jul 15
6
Subversion and migrations confusion
I''ve spent the last several months learning RoR and building my first app. I''ve not used migrations yet and honestly don''t understand them much, and have not had my app under version control. I''ve decided it''s time (I know, some will say way past time ;-) ) to put the app under version control. I''ll be using Subversion and have begun working
2011 Aug 19
0
Rails 3.1 reversible migrations and change_table
Hi, is the following migration really supposed to be irreversible? class AddColumnsToUsers < ActiveRecord::Migration def change change_table :users do |t| t.integer :foo t.integer :bar end end end I''m using Rails 3.1 RC6 and when trying to redo this migration I''m getting ActiveRecord::IrreversibleMigration error. Cheers, Szymon -- You received
2007 Dec 21
0
db:migrate problem
I''m having a bit of trouble getting a rails project to build properly within cruisecontrolrb. My cruise task is in lib/tasks/my_project.rake, and looks like this: task :cruise => [''db:test:purge'', ''db:migrate'', ''db:test:prepare'', ''test:coverage:clean'', ''test:coverage:prepare'',