Ticket #690 (defect)
Opened 8 months ago
Last modified 8 months ago
wrong self.down in migration 031
Status: closed (fixed)
| Reported by: | lrbalt | Assigned to: | lrbalt |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.5.1 |
| Component: | Coding | Version: | 1.5 |
| Severity: | normal | Keywords: | |
| Cc: |
I also found one other small error, I would make a ticket but the guest user doesn’t seem to have new ticket privileges. I’ve attached a fix for when you’re rolling back versions.
To verify do a rake db:migrate VERSION=0 (note: this will DESTROY all your data!), it’ll fail with wrong arguments for remove_column. This patch should fix it:
Index: 031_add_default_context_to_project.rb =================================================================== --- 031_add_default_context_to_project.rb (revision 711) +++ 031_add_default_context_to_project.rb (working copy) @@ -4,6 +4,6 @@ end def self.down - remove_column :projects, :default_context_id, :integer + remove_column :projects, :default_context_id end end
I still haven’t solved the whole problem though, now it has just one extra set of single quotes, ex: ‘database’ instead of just plain database.
Lolindrath
Change History
04/05/08 16:11:33: Modified by lrbalt
04/05/08 19:11:45: Modified by lrbalt
- status changed from new to closed.
- resolution set to fixed.
forum thread is http://www.rousette.org.uk/projects/forums/viewthread/131/P15/

ticket created from article on forum