Upon viewing one of my tables in the MySQL Query Browser, I found out
that it was "empty", and the columns are not being recognized. (And
I''ve ran rake:db migrate).
Why aren''t the columns showing up?
I posted a question about an error related to this in the RailsSpace
Group (
http://groups.google.com/group/railsspace/browse_thread/thread/9b1894f7b3e2f664?hl=en
)... and I''m pretty sure that the reason for the error is because the
table is empty.
Has anyone else experienced this problem before? Will deleting, and
regenerating the model (and migration), fix it? Or... what should I
do?
The file looks like this:.
class CreateSpecs < ActiveRecord::Migration
  def self.up
    create_table :specs do |t|
      t.column :user_id,    :integer, :null => false
      t.column :first_name, :string, :default => ""
      t.column :last_name,  :string, :default => ""
      t.column :gender,     :string
      t.column :birthdate,  :date
      t.column :occupation, :string, :default => ""
      t.column :city,       :string, :default => ""
      t.column :state,      :string, :default => ""
      t.column :zip_code,   :string, :default => ""
    end
  end
  def self.down
    drop_table :specs
  end
end
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---