mirror of
https://github.com/internetee/registry.git
synced 2025-07-02 01:03:35 +02:00
Basic archiving overhaul
This commit is contained in:
parent
19846a3abf
commit
3b1e21d6eb
12 changed files with 260 additions and 30 deletions
5
db/migrate/20141010085152_add_snapshot_to_domain.rb
Normal file
5
db/migrate/20141010085152_add_snapshot_to_domain.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
class AddSnapshotToDomain < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :domain_versions, :snapshot, :text
|
||||
end
|
||||
end
|
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20141006130306) do
|
||||
ActiveRecord::Schema.define(version: 20141010085152) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
@ -143,6 +143,7 @@ ActiveRecord::Schema.define(version: 20141006130306) do
|
|||
t.string "whodunnit"
|
||||
t.text "object"
|
||||
t.datetime "created_at"
|
||||
t.text "snapshot"
|
||||
end
|
||||
|
||||
add_index "domain_versions", ["item_type", "item_id"], name: "index_domain_versions_on_item_type_and_item_id", using: :btree
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue