Ah. That’s easy, but I’m not good enough at rails to tell you how. But you’ll have your code behind a callback (Active Record Callbacks — Ruby on Rails Guides) that gets called before create and it’ll fail if your fields aren’t there.
Ah. That’s easy, but I’m not good enough at rails to tell you how. But you’ll have your code behind a callback (Active Record Callbacks — Ruby on Rails Guides) that gets called before create and it’ll fail if your fields aren’t there.