creating a simple model with a migration like the following will break the rake db:migrate tasks:
class CreateProducts < ActiveRecord::Migration
def change
create_table :products do |t|
t.string :title
t.float :price, :default => "0.00"
t.string :currency, :default => "€"
t.timestamps
end
end
end
Exchanging the Euro sign with EUR fixes the issue temporary but in general I’d love to understand how I could work with € as default value there.
Cheers
Put this on the first line of your migration file: