implement soft delete for money moves

This commit is contained in:
Bilal
2020-10-09 16:12:44 +03:00
parent f2af0639f3
commit 722fc71f17
5 changed files with 17 additions and 3 deletions

View File

@@ -0,0 +1,5 @@
class AddDeletedAtToMoneyMoves < ActiveRecord::Migration[5.2]
def change
add_column :money_moves, :deleted_at, :timestamp
end
end

View File

@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2020_10_07_213411) do
ActiveRecord::Schema.define(version: 2020_10_09_114126) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -63,6 +63,7 @@ ActiveRecord::Schema.define(version: 2020_10_07_213411) do
t.integer "homie_id", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.datetime "deleted_at"
end
create_table "work", force: :cascade do |t|