I signed a contract that gave my employer the right to everything I produced at my own time. Fortunately it was an hourly job and I kept records, and I found out very fast that HR really didn't want to pay me overtime for anything. So they didn't have to pay me hundreds of thousands of dollars extra and I got to keep my work.
Now, had it been a salaried position, I would have been far more concerned.
Now, had it been a salaried position, I would have been far more concerned.