blob: 5de2b35571d7fe88c376326cb561976d42df28c6 (
plain)
1
2
3
4
5
6
7
8
9
10
|
function schema_changed() {
if [[ ! -z `git diff --name-only -- db/schema.rb` ]]; then
echo "db/schema.rb after rake db:migrate:reset is different from one in the repository"
exit 1
else
echo "db/schema.rb after rake db:migrate:reset matches one in the repository"
fi
}
schema_changed
|