Skip to content

Commit

Permalink
add updated-at timestamp to vouchertypes
Browse files Browse the repository at this point in the history
  • Loading branch information
armandofox committed Sep 27, 2024
1 parent e4ccc35 commit d8ef375
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions db/migrate/20240927062746_add_updated_at_to_vouchertypes.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddUpdatedAtToVouchertypes < ActiveRecord::Migration[5.0]
def change
add_column :vouchertypes, :updated_at, :datetime
end
end
3 changes: 2 additions & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 20240927053328) do
ActiveRecord::Schema.define(version: 20240927062746) do

# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
Expand Down Expand Up @@ -355,6 +355,7 @@
t.integer "account_code_id", default: 1, null: false
t.integer "display_order", default: 0, null: false
t.integer "seating_zone_id"
t.datetime "updated_at"
t.index ["account_code_id"], name: "index_vouchertypes_on_account_code_id", using: :btree
end

Expand Down

0 comments on commit d8ef375

Please sign in to comment.