You have local changes to 'db/schema.rb'; cannot switch branches.
Created by: davidvasandani
# sudo -u gitlab -H git checkout 4-0-stable
error: You have local changes to 'db/schema.rb'; cannot switch branches.
doing a git diff returns
diff --git a/db/schema.rb b/db/schema.rb
index ec4729c..a703781 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20121002151033) do
+ActiveRecord::Schema.define(:version => 20121009205010) do
create_table "events", :force => true do |t|
t.string "target_type"
How can I force it to checkout 4-0-stable and ignore or overwrite schema.rb?