AuditRecord
This commit is contained in:
parent
2804c55fd9
commit
c2dfc1f04a
5 changed files with 42 additions and 1 deletions
11
db/migrate/20210321225317_create_audit_records.rb
Normal file
11
db/migrate/20210321225317_create_audit_records.rb
Normal 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
10
db/schema.rb
generated
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue