search for: change_table

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

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 th...
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 this message because you are subscribed to the Google...
2009 Sep 28
5
Multi-databases support
Hi, While I was hacking ovirt-server, I have found that it's currently restricted to Postgres DB. Even if I like postgres for serious work on a server, I really prefer to hack/dev locally on a Sqlite or MySQL DB. I have googled on rails in order to find a good answer for the "foreign key problem" which forces OVirt to stay on pg. I have found a plugin on this particular
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 has_attached_file :image, :styles => { :medium => "300x300>", :thumb => "100x100&gt...
2005 Dec 21
10
can an active records maps to N tables?
Hi, Is it possbile that one active record maps to N tables, actually the relation is 1 to 1, I wonder it is possible. also can a ruby object map to N tables, instead of an active records? Thanks you very much:) Saiho __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com