AuditRecord

This commit is contained in:
Karol Selak 2021-03-22 00:54:45 +01:00
parent 2804c55fd9
commit c2dfc1f04a
5 changed files with 42 additions and 1 deletions

View file

@ -0,0 +1,11 @@
class CreateAuditRecords < ActiveRecord::Migration[6.1]
def change
create_table :audit_records do |t|
t.string :model
t.string :action
t.string :params
t.timestamps
end
end
end

10
db/schema.rb generated
View file

@ -10,7 +10,15 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2021_03_21_213901) do
ActiveRecord::Schema.define(version: 2021_03_21_225317) do
create_table "audit_records", force: :cascade do |t|
t.string "model"
t.string "action"
t.string "params"
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
end
create_table "authors", force: :cascade do |t|
t.string "first_name"