diff --git a/db/migrate/20170404161518_change_grant_purchases.rb b/db/migrate/20170404161518_change_grant_purchases.rb index c53f3d9a..e34b9114 100644 --- a/db/migrate/20170404161518_change_grant_purchases.rb +++ b/db/migrate/20170404161518_change_grant_purchases.rb @@ -1,4 +1,4 @@ -class ChangeGrantPurchases < ActiveRecord::Migration +class ChangeGrantPurchases < ActiveRecord::Migration[4.2] def change change_table :grant_purchases do |t| t.references :sourceable, :polymorphic => true diff --git a/db/migrate/20170612144659_add_sourceable_accounting_models.rb b/db/migrate/20170612144659_add_sourceable_accounting_models.rb index 77ee6054..1e1c7733 100644 --- a/db/migrate/20170612144659_add_sourceable_accounting_models.rb +++ b/db/migrate/20170612144659_add_sourceable_accounting_models.rb @@ -1,4 +1,4 @@ -class AddSourceableAccountingModels < ActiveRecord::Migration +class AddSourceableAccountingModels < ActiveRecord::Migration[4.2] def change change_table :grants do |t| t.references :sourceable, :polymorphic => true diff --git a/db/migrate/20170628185317_add_general_ledger_account_to_assets.rb b/db/migrate/20170628185317_add_general_ledger_account_to_assets.rb index ccb39400..730f4972 100644 --- a/db/migrate/20170628185317_add_general_ledger_account_to_assets.rb +++ b/db/migrate/20170628185317_add_general_ledger_account_to_assets.rb @@ -1,4 +1,4 @@ -class AddGeneralLedgerAccountToAssets < ActiveRecord::Migration +class AddGeneralLedgerAccountToAssets < ActiveRecord::Migration[4.2] def change add_reference :assets, :general_ledger_account, index: true add_reference :policy_asset_subtype_rules, :general_ledger_account, index: true diff --git a/db/migrate/20170629120830_create_general_ledger_account_entries.rb b/db/migrate/20170629120830_create_general_ledger_account_entries.rb index d0171c71..ecf3c71a 100644 --- a/db/migrate/20170629120830_create_general_ledger_account_entries.rb +++ b/db/migrate/20170629120830_create_general_ledger_account_entries.rb @@ -1,4 +1,4 @@ -class CreateGeneralLedgerAccountEntries < ActiveRecord::Migration +class CreateGeneralLedgerAccountEntries < ActiveRecord::Migration[4.2] def change create_table :general_ledger_account_entries do |t| t.string :object_key, limit: 12 diff --git a/db/migrate/20170629133015_add_name_to_grants.rb b/db/migrate/20170629133015_add_name_to_grants.rb index a36d52b4..2eedd545 100644 --- a/db/migrate/20170629133015_add_name_to_grants.rb +++ b/db/migrate/20170629133015_add_name_to_grants.rb @@ -1,4 +1,4 @@ -class AddNameToGrants < ActiveRecord::Migration +class AddNameToGrants < ActiveRecord::Migration[4.2] def change add_column :grants, :name, :string end diff --git a/db/migrate/20170629140322_create_organization_general_ledger_accounts.rb b/db/migrate/20170629140322_create_organization_general_ledger_accounts.rb index f873bf33..5821ddda 100644 --- a/db/migrate/20170629140322_create_organization_general_ledger_accounts.rb +++ b/db/migrate/20170629140322_create_organization_general_ledger_accounts.rb @@ -1,4 +1,4 @@ -class CreateOrganizationGeneralLedgerAccounts < ActiveRecord::Migration +class CreateOrganizationGeneralLedgerAccounts < ActiveRecord::Migration[4.2] def change create_table :organization_general_ledger_accounts do |t| t.string :name diff --git a/db/migrate/20170630154350_create_general_ledger_account_subtypes.rb b/db/migrate/20170630154350_create_general_ledger_account_subtypes.rb index 4aee263b..45dffecd 100644 --- a/db/migrate/20170630154350_create_general_ledger_account_subtypes.rb +++ b/db/migrate/20170630154350_create_general_ledger_account_subtypes.rb @@ -1,4 +1,4 @@ -class CreateGeneralLedgerAccountSubtypes < ActiveRecord::Migration +class CreateGeneralLedgerAccountSubtypes < ActiveRecord::Migration[4.2] def change create_table :general_ledger_account_subtypes do |t| t.references :general_ledger_account_type diff --git a/db/migrate/20170630182834_add_sources_to_general_ledger_accounts.rb b/db/migrate/20170630182834_add_sources_to_general_ledger_accounts.rb index f9355500..e9c7d640 100644 --- a/db/migrate/20170630182834_add_sources_to_general_ledger_accounts.rb +++ b/db/migrate/20170630182834_add_sources_to_general_ledger_accounts.rb @@ -1,4 +1,4 @@ -class AddSourcesToGeneralLedgerAccounts < ActiveRecord::Migration +class AddSourcesToGeneralLedgerAccounts < ActiveRecord::Migration[4.2] def change add_reference :general_ledger_accounts, :grant add_reference :general_ledger_account_entries, :sourceable, polymorphic: true diff --git a/db/migrate/20170719152744_change_limits_general_ledger_accounts.rb b/db/migrate/20170719152744_change_limits_general_ledger_accounts.rb index 5bf1b990..d9523425 100644 --- a/db/migrate/20170719152744_change_limits_general_ledger_accounts.rb +++ b/db/migrate/20170719152744_change_limits_general_ledger_accounts.rb @@ -1,4 +1,4 @@ -class ChangeLimitsGeneralLedgerAccounts < ActiveRecord::Migration +class ChangeLimitsGeneralLedgerAccounts < ActiveRecord::Migration[4.2] def change change_column :general_ledger_accounts, :account_number, :string, limit: nil change_column :general_ledger_accounts, :name, :string, limit: nil diff --git a/db/migrate/20170920191253_create_depreciation_entries.rb b/db/migrate/20170920191253_create_depreciation_entries.rb index caedfca3..6827a156 100644 --- a/db/migrate/20170920191253_create_depreciation_entries.rb +++ b/db/migrate/20170920191253_create_depreciation_entries.rb @@ -1,4 +1,4 @@ -class CreateDepreciationEntries < ActiveRecord::Migration +class CreateDepreciationEntries < ActiveRecord::Migration[4.2] def change create_table :depreciation_entries do |t| t.string :object_key, null: false, limit: 12 diff --git a/db/migrate/20170928145253_add_initial_depreciation_fields.rb b/db/migrate/20170928145253_add_initial_depreciation_fields.rb index cc5259c8..ef2412eb 100644 --- a/db/migrate/20170928145253_add_initial_depreciation_fields.rb +++ b/db/migrate/20170928145253_add_initial_depreciation_fields.rb @@ -1,4 +1,4 @@ -class AddInitialDepreciationFields < ActiveRecord::Migration +class AddInitialDepreciationFields < ActiveRecord::Migration[4.2] def change add_column :assets, :depreciation_useful_life, :integer, after: :depreciation_start_date add_column :assets, :depreciation_purchase_cost, :integer, after: :depreciation_useful_life diff --git a/db/migrate/20171004131444_clear_out_association_fields.rb b/db/migrate/20171004131444_clear_out_association_fields.rb index 00c02233..dc209e96 100644 --- a/db/migrate/20171004131444_clear_out_association_fields.rb +++ b/db/migrate/20171004131444_clear_out_association_fields.rb @@ -1,4 +1,4 @@ -class ClearOutAssociationFields < ActiveRecord::Migration +class ClearOutAssociationFields < ActiveRecord::Migration[4.2] def change drop_table :assets_general_ledger_accounts diff --git a/db/migrate/20171004170036_create_general_ledger_mappings.rb b/db/migrate/20171004170036_create_general_ledger_mappings.rb index be892282..248e3836 100644 --- a/db/migrate/20171004170036_create_general_ledger_mappings.rb +++ b/db/migrate/20171004170036_create_general_ledger_mappings.rb @@ -1,4 +1,4 @@ -class CreateGeneralLedgerMappings < ActiveRecord::Migration +class CreateGeneralLedgerMappings < ActiveRecord::Migration[4.2] def change create_table :general_ledger_mappings do |t| t.string :object_key, null: false, limit: 12 diff --git a/db/migrate/20171005150749_add_event_date_gla_entries.rb b/db/migrate/20171005150749_add_event_date_gla_entries.rb index 4a103e79..a2a346d4 100644 --- a/db/migrate/20171005150749_add_event_date_gla_entries.rb +++ b/db/migrate/20171005150749_add_event_date_gla_entries.rb @@ -1,4 +1,4 @@ -class AddEventDateGlaEntries < ActiveRecord::Migration +class AddEventDateGlaEntries < ActiveRecord::Migration[4.2] def change add_column :general_ledger_account_entries, :event_date, :date, after: :general_ledger_account_id end diff --git a/db/migrate/20171017173825_cleanup_expenditure_fields.rb b/db/migrate/20171017173825_cleanup_expenditure_fields.rb index 12ffac5b..63a964cb 100644 --- a/db/migrate/20171017173825_cleanup_expenditure_fields.rb +++ b/db/migrate/20171017173825_cleanup_expenditure_fields.rb @@ -1,4 +1,4 @@ -class CleanupExpenditureFields < ActiveRecord::Migration +class CleanupExpenditureFields < ActiveRecord::Migration[4.2] def change remove_column :expenditures, :organization_id remove_column :expenditures, :vendor_id diff --git a/db/migrate/20171030123535_cleanup_general_ledger_tables.rb b/db/migrate/20171030123535_cleanup_general_ledger_tables.rb index 79ef5490..d0a35e06 100644 --- a/db/migrate/20171030123535_cleanup_general_ledger_tables.rb +++ b/db/migrate/20171030123535_cleanup_general_ledger_tables.rb @@ -1,4 +1,4 @@ -class CleanupGeneralLedgerTables < ActiveRecord::Migration +class CleanupGeneralLedgerTables < ActiveRecord::Migration[4.2] def change add_column :asset_events, :general_ledger_account_id, :integer diff --git a/db/migrate/20171108212435_add_asset_general_ledger_account_entries.rb b/db/migrate/20171108212435_add_asset_general_ledger_account_entries.rb index 5340aae8..4b39449c 100644 --- a/db/migrate/20171108212435_add_asset_general_ledger_account_entries.rb +++ b/db/migrate/20171108212435_add_asset_general_ledger_account_entries.rb @@ -1,4 +1,4 @@ -class AddAssetGeneralLedgerAccountEntries < ActiveRecord::Migration +class AddAssetGeneralLedgerAccountEntries < ActiveRecord::Migration[4.2] def change add_reference :general_ledger_account_entries, :asset, index: true end diff --git a/db/migrate/20171121152747_add_extended_useful_life_months_expenditures.rb b/db/migrate/20171121152747_add_extended_useful_life_months_expenditures.rb index 2d152d06..373e7a08 100644 --- a/db/migrate/20171121152747_add_extended_useful_life_months_expenditures.rb +++ b/db/migrate/20171121152747_add_extended_useful_life_months_expenditures.rb @@ -1,4 +1,4 @@ -class AddExtendedUsefulLifeMonthsExpenditures < ActiveRecord::Migration +class AddExtendedUsefulLifeMonthsExpenditures < ActiveRecord::Migration[4.2] def change add_column :expenditures, :extended_useful_life_months, :integer, after: :amount end diff --git a/db/migrate/20171128161206_add_vendor_expenditures.rb b/db/migrate/20171128161206_add_vendor_expenditures.rb index d426864f..0e5f2697 100644 --- a/db/migrate/20171128161206_add_vendor_expenditures.rb +++ b/db/migrate/20171128161206_add_vendor_expenditures.rb @@ -1,4 +1,4 @@ -class AddVendorExpenditures < ActiveRecord::Migration +class AddVendorExpenditures < ActiveRecord::Migration[4.2] def change add_column :expenditures, :vendor, :string, after: :extended_useful_life_months end