You will never see anything in your database with the --sandbox . Any changes made in this mode will be canceled when you exit the console.
When you start the console using this option, you can read: Any changes you make will be discarded when you exit
Additional Information
If you try again, you will see SAVEPOINT active_record_1 before insertion and right after it you will see RELEASE SAVEPOINT active_record_1
Read these two links and you will get a better idea of โโwhat is happening. http://www.postgresql.org/docs/8.1/static/sql-savepoint.html http://www.postgresql.org/docs/9.1/static/sql-release-savepoint.html
Additional information 2 =)
As you can see in these two links, PostgreSQL creates a SAVEPOINT , saves the object, and then RELEASE SAVEPOINT . It does not save data permanently, this does not mean that --sandbox intended for use (IMO). Data is saved and immediately thereafter โreleasedโ. It is used to verify only to verify the relationship between your models, validation, etc.
Gerep source share