Skip to content

Commit

Permalink
Reintrdocuce tenant column
Browse files Browse the repository at this point in the history
Until we merge the feature that always turns on tenancy
(mbulat#79), we must keep
the dummy Rails app's migrations disjoint from what
`rake plutus:migrations:install` actually copies over
  • Loading branch information
ramontayag committed Jul 9, 2018
1 parent a2b678a commit d3de0bf
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: 20180709082453) 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 d3de0bf

Please sign in to comment.