Browse Source

Add validations table

validations-spike
Kat 9 months ago
parent
commit
566563d88d
  1. 18
      db/migrate/20240424092649_add_validations_table.rb
  2. 18
      db/schema.rb

18
db/migrate/20240424092649_add_validations_table.rb

@ -0,0 +1,18 @@
class AddValidationsTable < ActiveRecord::Migration[7.0]
def change
create_table :validations do |t|
t.column :log_type, :string
t.column :validation_name, :string
t.column :description, :string
t.column :field, :string
t.column :error_message, :string
t.column :case, :string
t.column :section, :string
t.column :from, :datetime
t.column :to, :datetime
t.column :validation_type, :string
t.column :hard_soft, :string
t.timestamps
end
end
end

18
db/schema.rb

@ -10,7 +10,7 @@
# #
# It's strongly recommended that you check this file into your version control system. # It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.0].define(version: 2024_03_19_122706) do ActiveRecord::Schema[7.0].define(version: 2024_04_24_092649) do
# These are extensions that must be enabled in order to support this database # These are extensions that must be enabled in order to support this database
enable_extension "plpgsql" enable_extension "plpgsql"
@ -773,6 +773,22 @@ ActiveRecord::Schema[7.0].define(version: 2024_03_19_122706) do
t.index ["unlock_token"], name: "index_users_on_unlock_token", unique: true t.index ["unlock_token"], name: "index_users_on_unlock_token", unique: true
end end
create_table "validations", force: :cascade do |t|
t.string "log_type"
t.string "validation_name"
t.string "description"
t.string "field"
t.string "error_message"
t.string "case"
t.string "section"
t.datetime "from"
t.datetime "to"
t.string "validation_type"
t.string "hard_soft"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
create_table "versions", force: :cascade do |t| create_table "versions", force: :cascade do |t|
t.string "item_type", limit: 191, null: false t.string "item_type", limit: 191, null: false
t.bigint "item_id", null: false t.bigint "item_id", null: false

Loading…
Cancel
Save