rails night changes, added before_save paragraph id create