[Rails] Re: how to give default value to fields in a model while creating model_name.new()

2009-03-05 Thread --- z...@m ---
yea am using mysql sad ! ! --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send em

[Rails] Re: how to give default value to fields in a model while creating model_name.new()

2009-03-05 Thread Starr Horne
On Thu, 5 Mar 2009 05:38:24 -0800 (PST) "--- z...@m ---" wrote: > > am a newbie to rails , I created a model named Employee > > and in migration i added the following > > class CreateEmployee < ActiveRecord::Migration > def self.up > create_table :employees do |t| > > t.string :n