initial data model implementation
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
class CreateEntryVersions < ActiveRecord::Migration[8.1]
|
||||
def change
|
||||
create_table :entry_versions do |t|
|
||||
t.references :entry, null: false, foreign_key: true
|
||||
t.references :user, null: false, foreign_key: true
|
||||
t.json :changes_made, null: false
|
||||
t.string :change_type
|
||||
t.datetime :created_at, null: false
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user