Run
rails g migration add_default_value_to_table
then in the migration file
def up
change_column :table_name, :column_name, :string, :default => "abcd"
end
def down
change_column :table_name, :column_name, :string, :default => nil
end
I've used datatype string
as an example, you can do it for column with any datatype