summaryrefslogtreecommitdiff
path: root/scripts/schema_changed.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/schema_changed.sh')
-rwxr-xr-xscripts/schema_changed.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/schema_changed.sh b/scripts/schema_changed.sh
index e8c120e92e1..427e0128df7 100755
--- a/scripts/schema_changed.sh
+++ b/scripts/schema_changed.sh
@@ -2,13 +2,13 @@
schema_changed() {
if [ ! -z "$(git diff --name-only -- db/structure.sql)" ]; then
- printf "db/structure.sql after rake db:migrate:reset is different from one in the repository"
+ printf "Schema changes are not cleanly committed to db/structure.sql\n"
printf "The diff is as follows:\n"
diff=$(git diff -p --binary -- db/structure.sql)
printf "%s" "$diff"
exit 1
else
- printf "db/structure.sql after rake db:migrate:reset matches one in the repository"
+ printf "Schema changes are correctly applied to db/structure.sql\n"
fi
}