title: Am getting error (150) of foreign key constraint after executing this query
body: <pre><code>create table generate (
      ticket_id numeric(5),
      person_id numeric(5),
      primary key(ticket_id,person_id),
      foreign key(ticket_id) references ticket(ticket_id),
      foreign key(person_id) references person(person_id)
  );
  </code></pre>