It has to read: create_table :notes do |t| in the example, not: create_table :users do |t|
It has to read:
create_table :notes do |t|
in the example, not: create_table :users do |t|