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
+18
View File
@@ -0,0 +1,18 @@
# frozen_string_literal: true
class CreateFlows < ActiveRecord::Migration[7.0]
def change
create_table :flows do |t|
t.string :slug, null: false, index: { unique: true }
t.string :name, null: false
t.string :schema, null: false
t.string :fields, null: false
t.references :author, null: false, foreign_key: { to_table: :users }, index: true
t.references :account, null: false, foreign_key: true, index: true
t.datetime :deleted_at
t.timestamps
end
end
end