Skip to content

Commit

Permalink
Specify rails version in migrations.
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekEdwards committed Jun 7, 2018
1 parent dafac18 commit b41956e
Show file tree
Hide file tree
Showing 19 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion db/migrate/20170404161518_change_grant_purchases.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20170629133015_add_name_to_grants.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddNameToGrants < ActiveRecord::Migration
class AddNameToGrants < ActiveRecord::Migration[4.2]
def change
add_column :grants, :name, :string
end
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20170920191253_create_depreciation_entries.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20171004131444_clear_out_association_fields.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class ClearOutAssociationFields < ActiveRecord::Migration
class ClearOutAssociationFields < ActiveRecord::Migration[4.2]
def change
drop_table :assets_general_ledger_accounts

Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20171005150749_add_event_date_gla_entries.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20171017173825_cleanup_expenditure_fields.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20171030123535_cleanup_general_ledger_tables.rb
Original file line number Diff line number Diff line change
@@ -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

Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20171128161206_add_vendor_expenditures.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit b41956e

Please sign in to comment.