Rake help

I have a problem with this application I am working on where I have to
modify the schema file directly. (it’s pretty crazy) When I run rake
db:test:prepare it will change my schema file to its default setting
where

create_table :events, :force => true do |t|
t.column “name”, :string
end

becomes
create_table “events”, :force => true do |t|
t.column “name”, :string
end

I also have, at the end of the file, a new event being created and
imported into my db. when that rake command is ran, that portion of the
schema file is deleted. Anyone know of why, or a way to stop this from
happening?