diff --git a/fixture_rails_root/db/migrate/20180709082453_tenant_plutus_tables.rb b/fixture_rails_root/db/migrate/20180709082453_tenant_plutus_tables.rb new file mode 100644 index 00000000..ca1cba7d --- /dev/null +++ b/fixture_rails_root/db/migrate/20180709082453_tenant_plutus_tables.rb @@ -0,0 +1,6 @@ +class TenantPlutusTables < ActiveRecord::Migration[4.2] + def change + # add a tenant column to plutus accounts table. + add_column :plutus_accounts, :tenant_id, :integer, index: true + end +end diff --git a/fixture_rails_root/db/schema.rb b/fixture_rails_root/db/schema.rb index f770c69b..b68be5a8 100644 --- a/fixture_rails_root/db/schema.rb +++ b/fixture_rails_root/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20170710173916) do +ActiveRecord::Schema.define(version: 20180709082453) do create_table "plutus_accounts", force: :cascade do |t| t.string "name" @@ -18,6 +18,7 @@ t.boolean "contra" t.datetime "created_at" t.datetime "updated_at" + t.integer "tenant_id" t.index ["name", "type"], name: "index_plutus_accounts_on_name_and_type" end