Browse Source

Add national columns

pull/909/head^2
Kat 4 years ago
parent
commit
ccacc956f6
  1. 8
      db/migrate/20220927082602_add_national_column.rb
  2. 2
      db/schema.rb

8
db/migrate/20220927082602_add_national_column.rb

@ -0,0 +1,8 @@
class AddNationalColumn < ActiveRecord::Migration[7.0]
def change
change_table :sales_logs, bulk: true do |t|
t.column :national, :integer
t.column :othernational, :string
end
end
end

2
db/schema.rb

@ -347,6 +347,8 @@ ActiveRecord::Schema[7.0].define(version: 2022_09_29_125204) do
t.integer "age2_known"
t.integer "ethnic"
t.integer "ethnic_group"
t.integer "national"
t.string "othernational"
t.index ["created_by_id"], name: "index_sales_logs_on_created_by_id"
t.index ["managing_organisation_id"], name: "index_sales_logs_on_managing_organisation_id"
t.index ["owning_organisation_id"], name: "index_sales_logs_on_owning_organisation_id"

Loading…
Cancel
Save