-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
9 changed files
with
72 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
# Not Released | ||
## Fixed | ||
- Fix loading of jquery-ui files (Fixes https://github.com/mbulat/plutus/issues/58) | ||
|
||
## Added | ||
- Add `Account#amounts` and `Account#entries` to get all amounts and entries, respectively | ||
# Change Log | ||
All notable changes to this project will be documented in this file. | ||
This project adheres to [Semantic Versioning](http://semver.org/). | ||
|
||
## Changed | ||
## [Unreleased] | ||
### Changed | ||
- Tenancy is enabled from the get go. Assigning a tenant is optional. See "Previous Versions" in the README on upgrading. | ||
- Required jquery-ui version | ||
- How migrations are done, which may be a breaking change from older versions of Plutus | ||
|
||
### Fixed | ||
- Fix loading of jquery-ui files (Fixes https://github.com/mbulat/plutus/issues/58) | ||
|
||
### Added | ||
- Add `Account#amounts` and `Account#entries` to get all amounts and entries, respectively |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
db/migrate/20160422034059_add_tenant_id_and_tenant_type_to_accounts.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
class AddTenantIdAndTenantTypeToAccounts < ActiveRecord::Migration | ||
def up | ||
unless Plutus.enable_tenancy | ||
add_column :plutus_accounts, :tenant_id, :integer | ||
end | ||
|
||
add_column :plutus_accounts, :tenant_type, :string | ||
|
||
Plutus::Account.reset_column_information | ||
Plutus::Account.update_all(tenant_type: Plutus.tenant_class) | ||
|
||
add_index :plutus_accounts, [:tenant_id, :tenant_type] | ||
end | ||
|
||
def down | ||
unless Plutus.enable_tenancy | ||
remove_column :plutus_accounts, :tenant_id, :integer | ||
end | ||
remove_column :plutus_accounts, :tenant_type, :string | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
..._rails_root/db/migrate/20160422044435_add_tenant_id_and_tenant_type_to_accounts.plutus.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# This migration comes from plutus (originally 20160422034059) | ||
class AddTenantIdAndTenantTypeToAccounts < ActiveRecord::Migration | ||
def up | ||
unless Plutus.enable_tenancy | ||
add_column :plutus_accounts, :tenant_id, :integer | ||
end | ||
|
||
add_column :plutus_accounts, :tenant_type, :string | ||
|
||
Plutus::Account.reset_column_information | ||
Plutus::Account.update_all(tenant_type: Plutus.tenant_class) | ||
|
||
add_index :plutus_accounts, [:tenant_id, :tenant_type] | ||
end | ||
|
||
def down | ||
unless Plutus.enable_tenancy | ||
remove_column :plutus_accounts, :tenant_id, :integer | ||
end | ||
remove_column :plutus_accounts, :tenant_type, :string | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters