Browse Source

Add imported_at columns

pull/1873/head
Kat 3 years ago
parent
commit
27939cb4c1
  1. 6
      db/migrate/20230828145454_add_migrated_on_fields.rb
  2. 4
      db/schema.rb

6
db/migrate/20230828145454_add_migrated_on_fields.rb

@ -0,0 +1,6 @@
class AddMigratedOnFields < ActiveRecord::Migration[7.0]
def change
add_column :lettings_logs, :imported_at, :datetime
add_column :sales_logs, :imported_at, :datetime
end
end

4
db/schema.rb

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.0].define(version: 2023_08_16_083950) do
ActiveRecord::Schema[7.0].define(version: 2023_08_28_145454) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -297,6 +297,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_08_16_083950) do
t.integer "status_cache", default: 0, null: false
t.datetime "discarded_at"
t.integer "creation_method", default: 1
t.datetime "imported_at"
t.index ["bulk_upload_id"], name: "index_lettings_logs_on_bulk_upload_id"
t.index ["created_by_id"], name: "index_lettings_logs_on_created_by_id"
t.index ["location_id"], name: "index_lettings_logs_on_location_id"
@ -617,6 +618,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_08_16_083950) do
t.integer "stairowned_value_check"
t.integer "creation_method", default: 1
t.integer "old_form_id"
t.datetime "imported_at"
t.index ["bulk_upload_id"], name: "index_sales_logs_on_bulk_upload_id"
t.index ["created_by_id"], name: "index_sales_logs_on_created_by_id"
t.index ["old_id"], name: "index_sales_logs_on_old_id", unique: true

Loading…
Cancel
Save