This project is archived and is in readonly mode.

#1525 ✓wontfix
Florian Aßmann

default values in text columns are wrapped in quotes

Reported by Florian Aßmann | December 7th, 2008 @ 11:15 PM | in 2.x


when I provide default values for text columns in migrations they are wrapped in quotes.

default_pages_body = %q{
<div id="top">

<navigation />
h1. Untitled


<div id="middle">

create_table :pages do |t|
  t.string :path, :null => false
  t.text :body, :null => false, :default => DEFAULT_PAGES_BODY
  t.string :title, :null => false

When I use the form tag helper with a textarea tag I get the following content.

'<div id="top">

<navigation />
h1. Untitled


<div id="middle">

Environment: Rails 2.2, sqlite3-ruby, rubygems 1.3.1 and ruby 1.8.7

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>

People watching this ticket