I have a rails app and want to add some default text to a field in my database. My schema looks like this:
t.text "message_default", :default => "Thank you"
But I want to add some variable to the default:
t.text "message_default", :default => "Thank you Fred"
So something like
t.text "message_default", :default => "Thank you #{self.client.name}"
I know I can do this with a call_back but I thought it might be quicker (if possible) to add it to the migration as a default (pretty sure it's not possible but I thought I'd ask).