O'Reilly logo

Sails.js in Action by Mike McNeil

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Using models

This chapter covers

  • Using models, attributes, methods, and connections
  • Creating user identity management
  • Transitioning from the default sails-disk database to PostgreSQL
  • An introduction to Waterline and ORMs

Chad dropped by today. It seems he received a panicked call from the investor last night. She was using Brushfire and to her horror found hundreds of dog videos littering the site. Chad said she insisted in the strongest possible terms, “This will not stand.” We explained to Chad that although we couldn’t prevent dog videos from being added to Brushfire, we could require users to be logged in to be able to add videos. That way, if a user violated the Terms of Service (ToS), his mom/investor could ban the user’s ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required