Class: CreateWCCContentfulAppContactFormSubmissions

Inherits:
Object
  • Object
show all
Defined in:
lib/generators/wcc/templates/section-contact-form/migrations/create_wcc_contentful_app_contact_form_submissions.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



4
5
6
7
8
9
10
11
# File 'lib/generators/wcc/templates/section-contact-form/migrations/create_wcc_contentful_app_contact_form_submissions.rb', line 4

def change
  create_table :wcc_contentful_app_contact_form_submissions do |t|
    t.string :form_id
    t.json :data, default: {}

    t.timestamps
  end
end