initial commit

This commit is contained in:
Alex Turchyn
2023-05-21 17:59:36 +03:00
commit 97c462ead2
159 changed files with 10987 additions and 0 deletions
@@ -0,0 +1,21 @@
# frozen_string_literal: true
class CreateSubmissions < ActiveRecord::Migration[7.0]
def change
create_table :submissions do |t|
t.string :email, null: false, index: true
t.string :slug, null: false, index: { unique: true }
t.references :flow, null: false, foreign_key: true, index: true
t.string :values, null: false
t.string :ua
t.string :ip
t.datetime :sent_at
t.datetime :opened_at
t.datetime :completed_at
t.datetime :deleted_at
t.timestamps
end
end
end