Skip to content

Commit

Permalink
add tenancy column to fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
mbulat committed Jul 10, 2017
1 parent 0b09df8 commit de0fdaf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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
3 changes: 2 additions & 1 deletion fixture_rails_root/db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 20170710173916) do
ActiveRecord::Schema.define(version: 20170710174915) do

create_table "plutus_accounts", force: :cascade do |t|
t.string "name"
t.string "type"
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

Expand Down

0 comments on commit de0fdaf

Please sign in to comment.