You can clone with
HTTPS or Subversion.
I have a table that includes a UTF-8 default value for a column
ActiveRecord::Schema.define(:version => 20110609012941) do
create_table "invoices", :force => true do |t|
t.string "recipient_title", :default => "御中"
Because the dumped schema does not include an encoding magic comment, this creates an error. It should have a magic comment indicating the encoding following from the db encoding.
Shouldn't it be the encoding of the database connection? Might not always be UTF-8.
Sorry - got confused between the pull request and issue :-)
I don't think it should be the encoding of database connection. It is the adapter who should care about the database connection. +1 for magic comment in schema.rb. Can find a time to do it if agreed.
Can I work on writing a fix for this issue?
dump IO encoding value along with schema.rb so the file can be reload…
…ed. fixes #1592