This project is archived and is in readonly mode.
default values in text columns are wrapped in quotes
Reported by Florian Aßmann | December 7th, 2008 @ 11:15 PM | in 2.x
Hello,
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>
<div id="middle">
</div>
}.strip.freeze
create_table :pages do |t|
t.string :path, :null => false
t.text :body, :null => false, :default => DEFAULT_PAGES_BODY
t.string :title, :null => false
t.timestamps
end
When I use the form tag helper with a textarea tag I get the following content.
'<div id="top">
<navigation />
h1. Untitled
</div>
<div id="middle">
</div>'
Environment: Rails 2.2, sqlite3-ruby, rubygems 1.3.1 and ruby 1.8.7
Comments and changes to this ticket
-
Pratik December 8th, 2008 @ 02:01 AM
- State changed from new to wontfix
Seems like an issue with sqlite gem.
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="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>