Usage:
rails generate preferences
This will create a migration that will add the proper table to store preferences.