similar to: Rails 3.1 reversible migrations and change_table

Displaying 20 results from an estimated 700 matches similar to: "Rails 3.1 reversible migrations and change_table"

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(
2008 Sep 18
2
change_table is not working on production server
Hi, I have added to my migration a change_table action. It works fine on my local dev machine, but on the production server the migration does not happen although the schema.rb file gets correctly updated. I am running Rails 2.1.1 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google
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'',
2012 Sep 25
3
Proposal for a new ActiveModel::Errors structure
There are few issues with the current ActiveModel::Errors class. Firstly, when an error is added to ActiveModel::Errors class via #add method (https://github.com/rails/rails/blob/master/activemodel/lib/active_model/errors.rb#L294) its translation is added. It should not be translated when being added, but only when being read. The second issue is a bit bigger. We''d like to create
2012 Feb 17
5
undefined method `key?' for nil:NilClass PaperClip
Hello, I have a problem with the paperclip, I put on my GemFile gem "paperclip", "~> 2.6.0" I create a migrate class FileUpload < ActiveRecord::Migration def up change_table :projects do |t| t.has_attached_file :image end end def down drop_attached_file :projects, :image end end on my model I put class Project < ActiveRecord::Base
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 Mar 18
6
how to rescue this exception
hi,i don''t know how to capture the following exception if the file directory or name is not correct. ########## def index @csv_array=[] begin CSV.foreach(''files/sample.csv'') do|row| sub_array=row @csv_array<<sub_array end rescue Exception=>e flash.now[:error]="error:#{e}" raise end end ######### after
2007 Jul 06
2
Make #underscore reversible
Hello All, I''ve submitted a patch (http://dev.rubyonrails.org/ticket/8898) to enable #underscore to be reversible. I had trouble creating a class named "CRSContact", and it turns out that underscore and camelize are not reversible in cases where there are 3 or more capital letters. As there is a dependency between class name and file name I think it would be beneficial for
2008 Apr 17
4
Do I need to use sessions if I don't store anything in them?
Hi, I got very small app that has user part and admin part. The problem is that after a while the sessions table has ~150mb. I don''t really need to store any user data in the session for the user part. I only need it for the admin part. Can I simply turn session off in controllers from the user part? Are there any drawbacks of turning the session off? Regards
2017 Nov 01
0
NoScript allow scripts globally reversible?
On 11/01/2017 09:51 AM, Michael Hennebry wrote: > > I'm running NoScript because otherwise Firefox freezes up a lot. > Recently I've had difficulty accessing a site. > I suspect the reason is that it uses redirection in a way that > frustrates my efforts to give it permission. > To test the notion, I'm considering temporarily allowing script globally. > How hard
2017 Nov 02
0
NoScript allow scripts globally reversible?
On Wed, November 1, 2017 10:51, Michael Hennebry wrote: > > I'm running NoScript because otherwise Firefox freezes up a lot. > Recently I've had difficulty accessing a site. > I suspect the reason is that it uses redirection in a way that > frustrates my efforts to give it permission. > To test the notion, I'm considering temporarily allowing script > globally.
2006 Feb 14
7
Action when database changes
Hello, Is it possible to trigger an action in a controller when a table from database changes? I thought about using an utility like cron (railscron) to check every, e.g. 2 s, if the table changed, but I am wondering if there is a solution a bit more ''elegant'': to trigger an action exactly when the change is made. Best regards, -- Kuba Nowak
2017 Nov 01
5
NoScript allow scripts globally reversible?
I'm running NoScript because otherwise Firefox freezes up a lot. Recently I've had difficulty accessing a site. I suspect the reason is that it uses redirection in a way that frustrates my efforts to give it permission. To test the notion, I'm considering temporarily allowing script globally. How hard is it to reverse? Will I need to redo previous permissions one at a time? --
2012 Oct 24
8
[Bug 56347] New: NVPlatformProbe routine does not mark the entity as Shared for ZaphodHeads.
https://bugs.freedesktop.org/show_bug.cgi?id=56347 Priority: medium Bug ID: 56347 Assignee: nouveau at lists.freedesktop.org Summary: NVPlatformProbe routine does not mark the entity as Shared for ZaphodHeads. QA Contact: xorg-team at lists.x.org Severity: normal Classification: Unclassified OS:
2006 Apr 01
3
acts_as_taggable, wrong number of arguments
Hello, When I try: @tagged_items = Problem.find_tagged_with :all => ''kuba'' or @tagged_items = Problem.tags_count :limit => 100 I get this error: ArgumentError in Volume#index wrong number of arguments (2 for 3) RAILS_ROOT: script/../config/.. Application Trace | Framework Trace | Full Trace
2007 Aug 27
3
Problem with ListCtrl#get_item
Hello, I have a problem with getting items from ListCtrl. Although my ListCtrl is in LC_REPORT mode, it has columns set up, every cell is set with set_item and everything displays fine, this code: x = myList.get_item(row,col).get_text() always returns an empty string. For example: myList.set_item(0,0,"Hello") x = myList.get_item(0,0).get_text() now x equals "" ! I
2007 Nov 24
12
orphan habtm rows
HI, i use models User and Groups connected with many to many association, so i have users table, groups and groups_users. lets say i create one user and one group. next i add a group to user. so now my table groups_users has one entry i.e. group_id | user_id _________|________ 1 | 1 ok, when i delete both my group and user, above entry is not deleted, thus leaving alone without
2008 Feb 17
15
A bug in wxRuby. Segmentation fault in random situations.
Hello, I wrote an application in wxRuby: ruby 1.8.6 wxruby 1.9.4 installed from gem windows xp sp2 After several minutes of running it crashes with the following error: "c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27: [BUG] Segmentation fault ruby 1.8.6 (2007-03-13) [i386-mswin32] This application has requested the Runtime to terminate it in an unusual way. Please contact
2010 Mar 18
2
CCrb configuration for many projects
Hi! I have about 10 projects in my Cruise. I want to use metric_fu (roodi, rcov, flay) metrics. Right now I have defined :cruise task in Rakefile in each project. Is there any convention to manage cruise configuration from one place? Gem? Plugin for Rails projects? Some good habit also for custom artifacts? -- Pozdrawiam, Sebastian Nowak http://blog.sebastiannowak.net XMPP: seban at chrome.pl
2011 Nov 02
12
[Bug 8566] New: Spotlight comments (extended attributes) are not synced
https://bugzilla.samba.org/show_bug.cgi?id=8566 Summary: Spotlight comments (extended attributes) are not synced Product: rsync Version: 3.0.9 Platform: All OS/Version: Mac OS X Status: NEW Severity: normal Priority: P5 Component: core AssignedTo: wayned at samba.org