From 74531f90c791b761325243bf6e71cc3155bdf8dc Mon Sep 17 00:00:00 2001 From: Patrick Gansterer Date: Fri, 7 Aug 2020 01:14:14 +0200 Subject: [PATCH] Add Rails release to ActiveRecord::Migration --- db/migrate/001_create_users.rb | 2 +- db/migrate/002_create_groups.rb | 2 +- db/migrate/003_create_suppliers.rb | 2 +- db/migrate/004_create_article_meta.rb | 2 +- db/migrate/005_create_financial_transactions.rb | 2 +- db/migrate/006_create_articles.rb | 2 +- db/migrate/007_create_article_prices.rb | 2 +- db/migrate/008_create_orders.rb | 2 +- db/migrate/009_create_order_results.rb | 2 +- db/migrate/010_user_password_reset.rb | 2 +- db/migrate/011_create_comments.rb | 2 +- db/migrate/012_create_order_clearing.rb | 2 +- db/migrate/013_add_messaging.rb | 2 +- db/migrate/014_create_tasks.rb | 2 +- db/migrate/015_change_result_quantities.rb | 2 +- db/migrate/016_add_shared_lists_connection.rb | 2 +- db/migrate/017_add_min_order_quantity.rb | 2 +- db/migrate/018_create_invites.rb | 2 +- db/migrate/019_remove_uniqueness_of_article_name.rb | 2 +- db/migrate/020_add_users_last_login.rb | 2 +- db/migrate/021_remove_table_article_prices.rb | 2 +- db/migrate/022_add_required_user_for_task.rb | 2 +- db/migrate/023_new_wording.rb | 2 +- db/migrate/024_add_deposit_defaults.rb | 2 +- db/migrate/025_extend_comments.rb | 2 +- db/migrate/20090120184410_road_to_version_three.rb | 2 +- db/migrate/20090317175355_add_profit_to_orders.rb | 2 +- db/migrate/20090325175756_create_pages.foodsoft_wiki_engine.rb | 2 +- db/migrate/20090405131156_modify_group_order_article_result.rb | 2 +- db/migrate/20090731132547_add_stats_to_groups.rb | 2 +- db/migrate/20090811144901_add_weekly_to_tasks.rb | 2 +- db/migrate/20090812110010_add_note_to_deliveries.rb | 2 +- db/migrate/20090907120012_add_missing_indexes.rb | 2 +- db/migrate/20110507184920_add_duration_to_tasks.rb | 2 +- db/migrate/20110507192928_add_task_duration_to_workgroups.rb | 2 +- db/migrate/20120512211613_add_order_indexes.rb | 2 +- ...20120622094337_add_next_weekly_tasks_number_to_workgroups.rb | 2 +- .../20120929155541_add_ignore_apple_restriction_to_groups.rb | 2 +- db/migrate/20121112093327_add_created_by_user_id_to_orders.rb | 2 +- db/migrate/20121216180646_remove_assigned_from_tasks.rb | 2 +- .../20121230142516_remove_account_updated_from_ordergroups.rb | 2 +- db/migrate/20130615073715_create_periodic_task_groups.rb | 2 +- db/migrate/20130622095040_move_weekly_tasks.rb | 2 +- db/migrate/20130624084223_remove_weekly_from_tasks.rb | 2 +- db/migrate/20130624085246_remove_weekly_task_from_groups.rb | 2 +- db/migrate/20130702113610_update_group_order_totals.rb | 2 +- db/migrate/20130718183100_create_settings.rb | 2 +- db/migrate/20130718183101_migrate_user_settings.rb | 2 +- db/migrate/20130920201529_allow_missing_nick.rb | 2 +- db/migrate/20130930132511_add_quantities_to_order_article.rb | 2 +- ...0140102170431_add_result_computed_to_group_order_articles.rb | 2 +- db/migrate/20140318173000_delete_empty_group_order_articles.rb | 2 +- db/migrate/20140521142651_add_sync_method_to_supplier.rb | 2 +- db/migrate/20140921104907_remove_stale_memberships.rb | 2 +- db/migrate/20141211210719_increase_account_balance_precision.rb | 2 +- .../20150227161931_add_replyto_and_groupid_to_messages.rb | 2 +- db/migrate/20150301000000_add_last_activity_to_user.rb | 2 +- db/migrate/20150923190747_add_boxfill_to_order.rb | 2 +- db/migrate/20160217115252_add_deleted_at_to_user.rb | 2 +- db/migrate/20160217124256_add_created_by_user_id_to_invoice.rb | 2 +- db/migrate/20160217134742_change_invoice_relation.rb | 2 +- db/migrate/20160217152621_add_pickup_to_order.rb | 2 +- db/migrate/20160217164552_add_break_to_group.rb | 2 +- db/migrate/20160217194036_add_role_invoices_to_group.rb | 2 +- db/migrate/20160218151041_add_attachment_to_invoice.rb | 2 +- ...160219123220_create_financial_transaction_class_and_types.rb | 2 +- ...20160220000000_create_documents.foodsoft_documents_engine.rb | 2 +- .../20160222000000_create_bank_accounts_and_transactions.rb | 2 +- db/migrate/20160224201529_allow_stock_group_order.rb | 2 +- ...60226000000_add_email_to_message.foodsoft_messages_engine.rb | 2 +- db/migrate/20160309153440_create_doorkeeper_tables.rb | 2 +- db/migrate/20161001000000_add_iban_to_supplier_and_user.rb | 2 +- db/migrate/20170801000000_create_mail_delivery_status.rb | 2 +- db/migrate/20171001000000_add_last_sent_mail_to_order.rb | 2 +- db/migrate/20171001020000_add_end_action_to_order.rb | 2 +- db/migrate/20171002000000_create_financial_links.rb | 2 +- ...05000000_add_parent_to_document.foodsoft_documents_engine.rb | 2 +- db/migrate/20171111000000_add_role_pickups_to_group.rb | 2 +- ...171201000000_add_name_short_to_financial_transaction_type.rb | 2 +- db/migrate/20181013195028_add_confidential_to_applications.rb | 2 +- db/migrate/20181110000000_create_polls.foodsoft_polls_engine.rb | 2 +- ...0181120000000_increase_choices_size.foodsoft_polls_engine.rb | 2 +- ...0181201000000_create_printer_jobs.foodsoft_printer_engine.rb | 2 +- ...0181201000100_create_message_recipients.foodsoft_messages.rb | 2 +- .../20181201000200_add_deleted_to_financial_transaction_type.rb | 2 +- .../20181201000210_add_group_order_to_financial_transaction.rb | 2 +- db/migrate/20181201000220_add_transport_to_order.rb | 2 +- ...201000300_allow_emtpy_ordergroup_in_financial_transaction.rb | 2 +- ...000301_change_ordergroup_default_in_financial_transaction.rb | 2 +- .../20181201000302_change_stock_supplier_to_null_in_order.rb | 2 +- db/migrate/20181201000305_ensure_article_for_article_price.rb | 2 +- db/migrate/20181201000400_create_supplier_categories.rb | 2 +- db/migrate/20181203000000_create_links.foodsoft_links.rb | 2 +- db/migrate/20181204000000_clear_invalid_invoices_from_orders.rb | 2 +- db/migrate/20181204010000_change_marked_as_deleted_names.rb | 2 +- db/migrate/20181204060000_change_delivered_on_to_date.rb | 2 +- db/migrate/20181204070000_create_stock_events.rb | 2 +- db/migrate/20181205000000_add_user_to_task.rb | 2 +- ...1205010000_add_bank_account_to_financial_transaction_type.rb | 2 +- plugins/documents/db/migrate/20160220000000_create_documents.rb | 2 +- .../db/migrate/20171105000000_add_parent_to_document.rb | 2 +- plugins/links/db/migrate/20181203000000_create_links.rb | 2 +- .../messages/db/migrate/20090120184410_create_messages.rb.skip | 2 +- .../messages/db/migrate/20160226000000_add_email_to_message.rb | 2 +- plugins/polls/db/migrate/20181110000000_create_polls.rb | 2 +- .../polls/db/migrate/20181120000000_increase_choices_size.rb | 2 +- .../printer/db/migrate/20181201000000_create_printer_jobs.rb | 2 +- plugins/wiki/db/migrate/20090325175756_create_pages.rb | 2 +- 108 files changed, 108 insertions(+), 108 deletions(-) diff --git a/db/migrate/001_create_users.rb b/db/migrate/001_create_users.rb index 21b7bbe7..70f54df6 100644 --- a/db/migrate/001_create_users.rb +++ b/db/migrate/001_create_users.rb @@ -1,4 +1,4 @@ -class CreateUsers < ActiveRecord::Migration +class CreateUsers < ActiveRecord::Migration[4.2] USER_ADMIN = 'admin' USER_TEST = 'test' diff --git a/db/migrate/002_create_groups.rb b/db/migrate/002_create_groups.rb index 700ec139..15b2ce11 100644 --- a/db/migrate/002_create_groups.rb +++ b/db/migrate/002_create_groups.rb @@ -1,4 +1,4 @@ -class CreateGroups < ActiveRecord::Migration +class CreateGroups < ActiveRecord::Migration[4.2] GROUP_ADMIN = 'Administrators' GROUP_ORDER = 'Sample Order Group' diff --git a/db/migrate/003_create_suppliers.rb b/db/migrate/003_create_suppliers.rb index 858919b6..e3ff260a 100644 --- a/db/migrate/003_create_suppliers.rb +++ b/db/migrate/003_create_suppliers.rb @@ -1,4 +1,4 @@ -class CreateSuppliers < ActiveRecord::Migration +class CreateSuppliers < ActiveRecord::Migration[4.2] SUPPLIER_SAMPLE = 'Sample Supplier' def self.up diff --git a/db/migrate/004_create_article_meta.rb b/db/migrate/004_create_article_meta.rb index 1f660f1c..6362765b 100644 --- a/db/migrate/004_create_article_meta.rb +++ b/db/migrate/004_create_article_meta.rb @@ -1,4 +1,4 @@ -class CreateArticleMeta < ActiveRecord::Migration +class CreateArticleMeta < ActiveRecord::Migration[4.2] CATEGORY_SAMPLE = 'Sample Category' TAX_STANDARD = 'Standard' TAX_REDUCED = 'Reduced' diff --git a/db/migrate/005_create_financial_transactions.rb b/db/migrate/005_create_financial_transactions.rb index 174e41fb..73d53a93 100644 --- a/db/migrate/005_create_financial_transactions.rb +++ b/db/migrate/005_create_financial_transactions.rb @@ -1,4 +1,4 @@ -class CreateFinancialTransactions < ActiveRecord::Migration +class CreateFinancialTransactions < ActiveRecord::Migration[4.2] def self.up # Create Financial Transactions create_table :financial_transactions do |t| diff --git a/db/migrate/006_create_articles.rb b/db/migrate/006_create_articles.rb index fee146b6..1e7f7e57 100644 --- a/db/migrate/006_create_articles.rb +++ b/db/migrate/006_create_articles.rb @@ -1,4 +1,4 @@ -class CreateArticles < ActiveRecord::Migration +class CreateArticles < ActiveRecord::Migration[4.2] SAMPLE_ARTICLE_NAMES = ['banana', 'kiwi', 'strawberry'] def self.up diff --git a/db/migrate/007_create_article_prices.rb b/db/migrate/007_create_article_prices.rb index b91abe5e..18954fd0 100644 --- a/db/migrate/007_create_article_prices.rb +++ b/db/migrate/007_create_article_prices.rb @@ -1,4 +1,4 @@ -class CreateArticlePrices < ActiveRecord::Migration +class CreateArticlePrices < ActiveRecord::Migration[4.2] def self.up create_table :article_prices do |t| t.column :article_id, :int, :null => false diff --git a/db/migrate/008_create_orders.rb b/db/migrate/008_create_orders.rb index 9b444347..d785c293 100644 --- a/db/migrate/008_create_orders.rb +++ b/db/migrate/008_create_orders.rb @@ -1,4 +1,4 @@ -class CreateOrders < ActiveRecord::Migration +class CreateOrders < ActiveRecord::Migration[4.2] ORDER_TEST = 'Test Order' GROUP_ORDER = 'Orders' diff --git a/db/migrate/009_create_order_results.rb b/db/migrate/009_create_order_results.rb index 49f4c84d..4288b7c7 100644 --- a/db/migrate/009_create_order_results.rb +++ b/db/migrate/009_create_order_results.rb @@ -1,4 +1,4 @@ -class CreateOrderResults < ActiveRecord::Migration +class CreateOrderResults < ActiveRecord::Migration[4.2] def self.up create_table :group_order_results do |t| t.column :order_id, :int, :null => false diff --git a/db/migrate/010_user_password_reset.rb b/db/migrate/010_user_password_reset.rb index 78aed064..598104b5 100644 --- a/db/migrate/010_user_password_reset.rb +++ b/db/migrate/010_user_password_reset.rb @@ -1,4 +1,4 @@ -class UserPasswordReset < ActiveRecord::Migration +class UserPasswordReset < ActiveRecord::Migration[4.2] def self.up add_column :users, :reset_password_token, :string diff --git a/db/migrate/011_create_comments.rb b/db/migrate/011_create_comments.rb index e72cc5cc..f3142ba4 100644 --- a/db/migrate/011_create_comments.rb +++ b/db/migrate/011_create_comments.rb @@ -1,4 +1,4 @@ -class CreateComments < ActiveRecord::Migration +class CreateComments < ActiveRecord::Migration[4.2] def self.up create_table :comments, :force => true do |t| t.column :title, :string, :limit => 50, :default => "" diff --git a/db/migrate/012_create_order_clearing.rb b/db/migrate/012_create_order_clearing.rb index 9a897675..0b1a7ac9 100644 --- a/db/migrate/012_create_order_clearing.rb +++ b/db/migrate/012_create_order_clearing.rb @@ -1,4 +1,4 @@ -class CreateOrderClearing < ActiveRecord::Migration +class CreateOrderClearing < ActiveRecord::Migration[4.2] def self.up add_column :orders, :invoice_amount, :decimal, :precision => 8, :scale => 2, :null => false, :default => 0 diff --git a/db/migrate/013_add_messaging.rb b/db/migrate/013_add_messaging.rb index c3464b90..da3b0bcb 100644 --- a/db/migrate/013_add_messaging.rb +++ b/db/migrate/013_add_messaging.rb @@ -1,4 +1,4 @@ -class AddMessaging < ActiveRecord::Migration +class AddMessaging < ActiveRecord::Migration[4.2] def self.up # Table that holds the messages: create_table :messages do |t| diff --git a/db/migrate/014_create_tasks.rb b/db/migrate/014_create_tasks.rb index eeea4400..ad8e0242 100644 --- a/db/migrate/014_create_tasks.rb +++ b/db/migrate/014_create_tasks.rb @@ -1,4 +1,4 @@ -class CreateTasks < ActiveRecord::Migration +class CreateTasks < ActiveRecord::Migration[4.2] def self.up create_table :tasks do |t| t.column :name, :string, :null => false diff --git a/db/migrate/015_change_result_quantities.rb b/db/migrate/015_change_result_quantities.rb index fa7477b5..9f4589bb 100644 --- a/db/migrate/015_change_result_quantities.rb +++ b/db/migrate/015_change_result_quantities.rb @@ -1,4 +1,4 @@ -class ChangeResultQuantities < ActiveRecord::Migration +class ChangeResultQuantities < ActiveRecord::Migration[4.2] def self.up change_column :group_order_article_results, :quantity, :decimal, :precision => 6, :scale => 3 change_column :order_article_results, :units_to_order, :decimal, :precision => 6, :scale => 3, :null => false diff --git a/db/migrate/016_add_shared_lists_connection.rb b/db/migrate/016_add_shared_lists_connection.rb index 959041c0..f9950b28 100644 --- a/db/migrate/016_add_shared_lists_connection.rb +++ b/db/migrate/016_add_shared_lists_connection.rb @@ -1,4 +1,4 @@ -class AddSharedListsConnection < ActiveRecord::Migration +class AddSharedListsConnection < ActiveRecord::Migration[4.2] def self.up add_column :suppliers, :shared_supplier_id, :integer add_column :articles, :manufacturer , :string diff --git a/db/migrate/017_add_min_order_quantity.rb b/db/migrate/017_add_min_order_quantity.rb index a775093e..6d2699b7 100644 --- a/db/migrate/017_add_min_order_quantity.rb +++ b/db/migrate/017_add_min_order_quantity.rb @@ -1,4 +1,4 @@ -class AddMinOrderQuantity < ActiveRecord::Migration +class AddMinOrderQuantity < ActiveRecord::Migration[4.2] def self.up add_column :suppliers, :min_order_quantity, :string end diff --git a/db/migrate/018_create_invites.rb b/db/migrate/018_create_invites.rb index b5be012e..cc8a1ebc 100644 --- a/db/migrate/018_create_invites.rb +++ b/db/migrate/018_create_invites.rb @@ -1,4 +1,4 @@ -class CreateInvites < ActiveRecord::Migration +class CreateInvites < ActiveRecord::Migration[4.2] def self.up create_table :invites do |t| t.column :token, :string, :null => false diff --git a/db/migrate/019_remove_uniqueness_of_article_name.rb b/db/migrate/019_remove_uniqueness_of_article_name.rb index dba4494c..7504a66a 100644 --- a/db/migrate/019_remove_uniqueness_of_article_name.rb +++ b/db/migrate/019_remove_uniqueness_of_article_name.rb @@ -1,4 +1,4 @@ -class RemoveUniquenessOfArticleName < ActiveRecord::Migration +class RemoveUniquenessOfArticleName < ActiveRecord::Migration[4.2] def self.up remove_index :articles, :name add_index :articles, [:name, :supplier_id] diff --git a/db/migrate/020_add_users_last_login.rb b/db/migrate/020_add_users_last_login.rb index 3318d23e..9158784d 100644 --- a/db/migrate/020_add_users_last_login.rb +++ b/db/migrate/020_add_users_last_login.rb @@ -1,4 +1,4 @@ -class AddUsersLastLogin < ActiveRecord::Migration +class AddUsersLastLogin < ActiveRecord::Migration[4.2] def self.up add_column :users, :last_login, :datetime end diff --git a/db/migrate/021_remove_table_article_prices.rb b/db/migrate/021_remove_table_article_prices.rb index 67d33ad4..17cf6b45 100644 --- a/db/migrate/021_remove_table_article_prices.rb +++ b/db/migrate/021_remove_table_article_prices.rb @@ -1,4 +1,4 @@ -class RemoveTableArticlePrices < ActiveRecord::Migration +class RemoveTableArticlePrices < ActiveRecord::Migration[4.2] def self.up puts "create columns in articles ..." diff --git a/db/migrate/022_add_required_user_for_task.rb b/db/migrate/022_add_required_user_for_task.rb index 907154fc..9e8d9621 100644 --- a/db/migrate/022_add_required_user_for_task.rb +++ b/db/migrate/022_add_required_user_for_task.rb @@ -1,4 +1,4 @@ -class AddRequiredUserForTask < ActiveRecord::Migration +class AddRequiredUserForTask < ActiveRecord::Migration[4.2] def self.up add_column :tasks, :required_users, :integer, :default => 1 add_column :groups, :task_required_users, :integer, :default => 1 diff --git a/db/migrate/023_new_wording.rb b/db/migrate/023_new_wording.rb index f411504a..e2fb77e8 100644 --- a/db/migrate/023_new_wording.rb +++ b/db/migrate/023_new_wording.rb @@ -1,4 +1,4 @@ -class NewWording < ActiveRecord::Migration +class NewWording < ActiveRecord::Migration[4.2] def self.up rename_column :articles, :clear_price, :net_price rename_column :articles, :refund, :deposit diff --git a/db/migrate/024_add_deposit_defaults.rb b/db/migrate/024_add_deposit_defaults.rb index cd9251eb..ed9da063 100644 --- a/db/migrate/024_add_deposit_defaults.rb +++ b/db/migrate/024_add_deposit_defaults.rb @@ -1,4 +1,4 @@ -class AddDepositDefaults < ActiveRecord::Migration +class AddDepositDefaults < ActiveRecord::Migration[4.2] def self.up change_column_default :articles, :deposit, 0.0 change_column_default :order_article_results, :net_price, 0.0 diff --git a/db/migrate/025_extend_comments.rb b/db/migrate/025_extend_comments.rb index dbe99496..662b92fd 100644 --- a/db/migrate/025_extend_comments.rb +++ b/db/migrate/025_extend_comments.rb @@ -1,4 +1,4 @@ -class ExtendComments < ActiveRecord::Migration +class ExtendComments < ActiveRecord::Migration[4.2] def self.up change_column :comments, :comment, :text, :default => "" end diff --git a/db/migrate/20090120184410_road_to_version_three.rb b/db/migrate/20090120184410_road_to_version_three.rb index 96d2d249..be53b11d 100644 --- a/db/migrate/20090120184410_road_to_version_three.rb +++ b/db/migrate/20090120184410_road_to_version_three.rb @@ -1,7 +1,7 @@ class OrderGroup < Group; end # Needed for renaming of OrderGroup to Ordergroup -class RoadToVersionThree < ActiveRecord::Migration +class RoadToVersionThree < ActiveRecord::Migration[4.2] def self.up # TODO: Combine migrations since foodsoft3-development into one file # and try to build a migration path from old data. diff --git a/db/migrate/20090317175355_add_profit_to_orders.rb b/db/migrate/20090317175355_add_profit_to_orders.rb index a071a889..508e6982 100644 --- a/db/migrate/20090317175355_add_profit_to_orders.rb +++ b/db/migrate/20090317175355_add_profit_to_orders.rb @@ -1,4 +1,4 @@ -class AddProfitToOrders < ActiveRecord::Migration +class AddProfitToOrders < ActiveRecord::Migration[4.2] def self.up add_column :orders, :foodcoop_result, :decimal, :precision => 8, :scale => 2 diff --git a/db/migrate/20090325175756_create_pages.foodsoft_wiki_engine.rb b/db/migrate/20090325175756_create_pages.foodsoft_wiki_engine.rb index dc8cb3bc..c5692f35 100644 --- a/db/migrate/20090325175756_create_pages.foodsoft_wiki_engine.rb +++ b/db/migrate/20090325175756_create_pages.foodsoft_wiki_engine.rb @@ -1,5 +1,5 @@ # This migration comes from foodsoft_wiki_engine (originally 20090325175756) -class CreatePages < ActiveRecord::Migration +class CreatePages < ActiveRecord::Migration[4.2] def self.up create_table :pages do |t| t.string :title diff --git a/db/migrate/20090405131156_modify_group_order_article_result.rb b/db/migrate/20090405131156_modify_group_order_article_result.rb index f2955fd2..44e0dea8 100644 --- a/db/migrate/20090405131156_modify_group_order_article_result.rb +++ b/db/migrate/20090405131156_modify_group_order_article_result.rb @@ -1,4 +1,4 @@ -class ModifyGroupOrderArticleResult < ActiveRecord::Migration +class ModifyGroupOrderArticleResult < ActiveRecord::Migration[4.2] def self.up change_column :group_order_articles, :result, :decimal, :precision => 8, :scale => 3 end diff --git a/db/migrate/20090731132547_add_stats_to_groups.rb b/db/migrate/20090731132547_add_stats_to_groups.rb index 591a4ca6..e4332968 100644 --- a/db/migrate/20090731132547_add_stats_to_groups.rb +++ b/db/migrate/20090731132547_add_stats_to_groups.rb @@ -1,4 +1,4 @@ -class AddStatsToGroups < ActiveRecord::Migration +class AddStatsToGroups < ActiveRecord::Migration[4.2] def self.up add_column :groups, :stats, :text diff --git a/db/migrate/20090811144901_add_weekly_to_tasks.rb b/db/migrate/20090811144901_add_weekly_to_tasks.rb index 11f1568d..015fd178 100644 --- a/db/migrate/20090811144901_add_weekly_to_tasks.rb +++ b/db/migrate/20090811144901_add_weekly_to_tasks.rb @@ -1,4 +1,4 @@ -class AddWeeklyToTasks < ActiveRecord::Migration +class AddWeeklyToTasks < ActiveRecord::Migration[4.2] def self.up add_column :tasks, :weekly, :boolean end diff --git a/db/migrate/20090812110010_add_note_to_deliveries.rb b/db/migrate/20090812110010_add_note_to_deliveries.rb index 7aae0cc4..7ad681d9 100644 --- a/db/migrate/20090812110010_add_note_to_deliveries.rb +++ b/db/migrate/20090812110010_add_note_to_deliveries.rb @@ -1,4 +1,4 @@ -class AddNoteToDeliveries < ActiveRecord::Migration +class AddNoteToDeliveries < ActiveRecord::Migration[4.2] def self.up add_column :deliveries, :note, :text end diff --git a/db/migrate/20090907120012_add_missing_indexes.rb b/db/migrate/20090907120012_add_missing_indexes.rb index 9107a12e..03dc43cd 100644 --- a/db/migrate/20090907120012_add_missing_indexes.rb +++ b/db/migrate/20090907120012_add_missing_indexes.rb @@ -1,4 +1,4 @@ -class AddMissingIndexes < ActiveRecord::Migration +class AddMissingIndexes < ActiveRecord::Migration[4.2] def self.up add_index "article_prices", ["article_id"] diff --git a/db/migrate/20110507184920_add_duration_to_tasks.rb b/db/migrate/20110507184920_add_duration_to_tasks.rb index b31fabda..33a11494 100644 --- a/db/migrate/20110507184920_add_duration_to_tasks.rb +++ b/db/migrate/20110507184920_add_duration_to_tasks.rb @@ -1,4 +1,4 @@ -class AddDurationToTasks < ActiveRecord::Migration +class AddDurationToTasks < ActiveRecord::Migration[4.2] def self.up add_column :tasks, :duration, :integer, :default => 1 end diff --git a/db/migrate/20110507192928_add_task_duration_to_workgroups.rb b/db/migrate/20110507192928_add_task_duration_to_workgroups.rb index 880ff677..c5b4844b 100644 --- a/db/migrate/20110507192928_add_task_duration_to_workgroups.rb +++ b/db/migrate/20110507192928_add_task_duration_to_workgroups.rb @@ -1,4 +1,4 @@ -class AddTaskDurationToWorkgroups < ActiveRecord::Migration +class AddTaskDurationToWorkgroups < ActiveRecord::Migration[4.2] def self.up add_column :groups, :task_duration, :integer, :default => 1 end diff --git a/db/migrate/20120512211613_add_order_indexes.rb b/db/migrate/20120512211613_add_order_indexes.rb index e2f5eda2..9b4243be 100644 --- a/db/migrate/20120512211613_add_order_indexes.rb +++ b/db/migrate/20120512211613_add_order_indexes.rb @@ -1,4 +1,4 @@ -class AddOrderIndexes < ActiveRecord::Migration +class AddOrderIndexes < ActiveRecord::Migration[4.2] def self.up add_index :group_order_articles, :group_order_id add_index :group_order_articles, :order_article_id diff --git a/db/migrate/20120622094337_add_next_weekly_tasks_number_to_workgroups.rb b/db/migrate/20120622094337_add_next_weekly_tasks_number_to_workgroups.rb index 296200aa..b8ac8c81 100644 --- a/db/migrate/20120622094337_add_next_weekly_tasks_number_to_workgroups.rb +++ b/db/migrate/20120622094337_add_next_weekly_tasks_number_to_workgroups.rb @@ -1,4 +1,4 @@ -class AddNextWeeklyTasksNumberToWorkgroups < ActiveRecord::Migration +class AddNextWeeklyTasksNumberToWorkgroups < ActiveRecord::Migration[4.2] def self.up add_column :groups, :next_weekly_tasks_number, :integer, :default => 8 end diff --git a/db/migrate/20120929155541_add_ignore_apple_restriction_to_groups.rb b/db/migrate/20120929155541_add_ignore_apple_restriction_to_groups.rb index e3f71980..ad83e41f 100644 --- a/db/migrate/20120929155541_add_ignore_apple_restriction_to_groups.rb +++ b/db/migrate/20120929155541_add_ignore_apple_restriction_to_groups.rb @@ -1,4 +1,4 @@ -class AddIgnoreAppleRestrictionToGroups < ActiveRecord::Migration +class AddIgnoreAppleRestrictionToGroups < ActiveRecord::Migration[4.2] def self.up add_column :groups, :ignore_apple_restriction, :boolean, default: false end diff --git a/db/migrate/20121112093327_add_created_by_user_id_to_orders.rb b/db/migrate/20121112093327_add_created_by_user_id_to_orders.rb index 64614aa4..5ba3545a 100644 --- a/db/migrate/20121112093327_add_created_by_user_id_to_orders.rb +++ b/db/migrate/20121112093327_add_created_by_user_id_to_orders.rb @@ -1,4 +1,4 @@ -class AddCreatedByUserIdToOrders < ActiveRecord::Migration +class AddCreatedByUserIdToOrders < ActiveRecord::Migration[4.2] def self.up add_column :orders, :created_by_user_id, :integer end diff --git a/db/migrate/20121216180646_remove_assigned_from_tasks.rb b/db/migrate/20121216180646_remove_assigned_from_tasks.rb index 97fc6477..5edcf8e0 100644 --- a/db/migrate/20121216180646_remove_assigned_from_tasks.rb +++ b/db/migrate/20121216180646_remove_assigned_from_tasks.rb @@ -1,4 +1,4 @@ -class RemoveAssignedFromTasks < ActiveRecord::Migration +class RemoveAssignedFromTasks < ActiveRecord::Migration[4.2] def up remove_column :tasks, :assigned end diff --git a/db/migrate/20121230142516_remove_account_updated_from_ordergroups.rb b/db/migrate/20121230142516_remove_account_updated_from_ordergroups.rb index 0aedf521..84701724 100644 --- a/db/migrate/20121230142516_remove_account_updated_from_ordergroups.rb +++ b/db/migrate/20121230142516_remove_account_updated_from_ordergroups.rb @@ -1,4 +1,4 @@ -class RemoveAccountUpdatedFromOrdergroups < ActiveRecord::Migration +class RemoveAccountUpdatedFromOrdergroups < ActiveRecord::Migration[4.2] def up remove_column :groups, :account_updated end diff --git a/db/migrate/20130615073715_create_periodic_task_groups.rb b/db/migrate/20130615073715_create_periodic_task_groups.rb index 87cf560b..fe1060d1 100644 --- a/db/migrate/20130615073715_create_periodic_task_groups.rb +++ b/db/migrate/20130615073715_create_periodic_task_groups.rb @@ -1,4 +1,4 @@ -class CreatePeriodicTaskGroups < ActiveRecord::Migration +class CreatePeriodicTaskGroups < ActiveRecord::Migration[4.2] def change create_table :periodic_task_groups do |t| t.date :next_task_date diff --git a/db/migrate/20130622095040_move_weekly_tasks.rb b/db/migrate/20130622095040_move_weekly_tasks.rb index e8dc8384..3ca266ae 100644 --- a/db/migrate/20130622095040_move_weekly_tasks.rb +++ b/db/migrate/20130622095040_move_weekly_tasks.rb @@ -1,4 +1,4 @@ -class MoveWeeklyTasks < ActiveRecord::Migration +class MoveWeeklyTasks < ActiveRecord::Migration[4.2] def up Workgroup.where(weekly_task: true).each do |workgroup| task_group = PeriodicTaskGroup.create diff --git a/db/migrate/20130624084223_remove_weekly_from_tasks.rb b/db/migrate/20130624084223_remove_weekly_from_tasks.rb index 4fefcb5b..d932eb4b 100644 --- a/db/migrate/20130624084223_remove_weekly_from_tasks.rb +++ b/db/migrate/20130624084223_remove_weekly_from_tasks.rb @@ -1,4 +1,4 @@ -class RemoveWeeklyFromTasks < ActiveRecord::Migration +class RemoveWeeklyFromTasks < ActiveRecord::Migration[4.2] def up remove_column :tasks, :weekly end diff --git a/db/migrate/20130624085246_remove_weekly_task_from_groups.rb b/db/migrate/20130624085246_remove_weekly_task_from_groups.rb index 665651d9..867c5641 100644 --- a/db/migrate/20130624085246_remove_weekly_task_from_groups.rb +++ b/db/migrate/20130624085246_remove_weekly_task_from_groups.rb @@ -1,4 +1,4 @@ -class RemoveWeeklyTaskFromGroups < ActiveRecord::Migration +class RemoveWeeklyTaskFromGroups < ActiveRecord::Migration[4.2] def up remove_column :groups, :weekly_task remove_column :groups, :weekday diff --git a/db/migrate/20130702113610_update_group_order_totals.rb b/db/migrate/20130702113610_update_group_order_totals.rb index ca9aab67..da57126a 100644 --- a/db/migrate/20130702113610_update_group_order_totals.rb +++ b/db/migrate/20130702113610_update_group_order_totals.rb @@ -1,4 +1,4 @@ -class UpdateGroupOrderTotals < ActiveRecord::Migration +class UpdateGroupOrderTotals < ActiveRecord::Migration[4.2] def self.up say "If you have ever modified an order after it was settled, the group_order's " + "price may be calculated incorrectly. This can take a lot of time on a " + diff --git a/db/migrate/20130718183100_create_settings.rb b/db/migrate/20130718183100_create_settings.rb index 90a0f527..f6e2a9ad 100644 --- a/db/migrate/20130718183100_create_settings.rb +++ b/db/migrate/20130718183100_create_settings.rb @@ -1,4 +1,4 @@ -class CreateSettings < ActiveRecord::Migration +class CreateSettings < ActiveRecord::Migration[4.2] def self.up create_table :settings do |t| t.string :var, null: false diff --git a/db/migrate/20130718183101_migrate_user_settings.rb b/db/migrate/20130718183101_migrate_user_settings.rb index 73f30acf..1a13efba 100644 --- a/db/migrate/20130718183101_migrate_user_settings.rb +++ b/db/migrate/20130718183101_migrate_user_settings.rb @@ -1,4 +1,4 @@ -class MigrateUserSettings < ActiveRecord::Migration +class MigrateUserSettings < ActiveRecord::Migration[4.2] def up say_with_time 'Save old user settings in new RailsSettings module' do diff --git a/db/migrate/20130920201529_allow_missing_nick.rb b/db/migrate/20130920201529_allow_missing_nick.rb index f5b96d3e..ed818860 100644 --- a/db/migrate/20130920201529_allow_missing_nick.rb +++ b/db/migrate/20130920201529_allow_missing_nick.rb @@ -1,4 +1,4 @@ -class AllowMissingNick < ActiveRecord::Migration +class AllowMissingNick < ActiveRecord::Migration[4.2] def self.up change_column :users, :nick, :string, :default => nil, :null => true end diff --git a/db/migrate/20130930132511_add_quantities_to_order_article.rb b/db/migrate/20130930132511_add_quantities_to_order_article.rb index 1477b194..234417e4 100644 --- a/db/migrate/20130930132511_add_quantities_to_order_article.rb +++ b/db/migrate/20130930132511_add_quantities_to_order_article.rb @@ -1,4 +1,4 @@ -class AddQuantitiesToOrderArticle < ActiveRecord::Migration +class AddQuantitiesToOrderArticle < ActiveRecord::Migration[4.2] def change add_column :order_articles, :units_billed, :integer add_column :order_articles, :units_received, :integer diff --git a/db/migrate/20140102170431_add_result_computed_to_group_order_articles.rb b/db/migrate/20140102170431_add_result_computed_to_group_order_articles.rb index e4503fa0..3a5f2634 100644 --- a/db/migrate/20140102170431_add_result_computed_to_group_order_articles.rb +++ b/db/migrate/20140102170431_add_result_computed_to_group_order_articles.rb @@ -1,4 +1,4 @@ -class AddResultComputedToGroupOrderArticles < ActiveRecord::Migration +class AddResultComputedToGroupOrderArticles < ActiveRecord::Migration[4.2] def change add_column :group_order_articles, :result_computed, :decimal, :precision => 8, :scale => 3 diff --git a/db/migrate/20140318173000_delete_empty_group_order_articles.rb b/db/migrate/20140318173000_delete_empty_group_order_articles.rb index af44b757..1e053c3c 100644 --- a/db/migrate/20140318173000_delete_empty_group_order_articles.rb +++ b/db/migrate/20140318173000_delete_empty_group_order_articles.rb @@ -1,4 +1,4 @@ -class DeleteEmptyGroupOrderArticles < ActiveRecord::Migration +class DeleteEmptyGroupOrderArticles < ActiveRecord::Migration[4.2] def up # up until recently, group_order_articles with all quantities zero were saved GroupOrderArticle.where(quantity: 0, tolerance: 0, result: [0, nil], result_computed: [0, nil]).delete_all diff --git a/db/migrate/20140521142651_add_sync_method_to_supplier.rb b/db/migrate/20140521142651_add_sync_method_to_supplier.rb index 1c60dd96..0f0904dd 100644 --- a/db/migrate/20140521142651_add_sync_method_to_supplier.rb +++ b/db/migrate/20140521142651_add_sync_method_to_supplier.rb @@ -1,4 +1,4 @@ -class AddSyncMethodToSupplier < ActiveRecord::Migration +class AddSyncMethodToSupplier < ActiveRecord::Migration[4.2] def change add_column :suppliers, :shared_sync_method, :string end diff --git a/db/migrate/20140921104907_remove_stale_memberships.rb b/db/migrate/20140921104907_remove_stale_memberships.rb index ca55535c..de5b719b 100644 --- a/db/migrate/20140921104907_remove_stale_memberships.rb +++ b/db/migrate/20140921104907_remove_stale_memberships.rb @@ -1,4 +1,4 @@ -class RemoveStaleMemberships < ActiveRecord::Migration +class RemoveStaleMemberships < ActiveRecord::Migration[4.2] def up Membership.where("group_id NOT IN (?)", Group.ids).delete_all end diff --git a/db/migrate/20141211210719_increase_account_balance_precision.rb b/db/migrate/20141211210719_increase_account_balance_precision.rb index 423d389c..21149dd1 100644 --- a/db/migrate/20141211210719_increase_account_balance_precision.rb +++ b/db/migrate/20141211210719_increase_account_balance_precision.rb @@ -1,4 +1,4 @@ -class IncreaseAccountBalancePrecision < ActiveRecord::Migration +class IncreaseAccountBalancePrecision < ActiveRecord::Migration[4.2] def up change_column :groups, :account_balance, :decimal, precision: 12, scale: 2 end diff --git a/db/migrate/20150227161931_add_replyto_and_groupid_to_messages.rb b/db/migrate/20150227161931_add_replyto_and_groupid_to_messages.rb index 58d51ad0..aec96ea5 100644 --- a/db/migrate/20150227161931_add_replyto_and_groupid_to_messages.rb +++ b/db/migrate/20150227161931_add_replyto_and_groupid_to_messages.rb @@ -1,4 +1,4 @@ -class AddReplytoAndGroupidToMessages < ActiveRecord::Migration +class AddReplytoAndGroupidToMessages < ActiveRecord::Migration[4.2] def change add_column :messages, :reply_to, :integer add_column :messages, :group_id, :integer diff --git a/db/migrate/20150301000000_add_last_activity_to_user.rb b/db/migrate/20150301000000_add_last_activity_to_user.rb index b8a177d0..9bc74461 100644 --- a/db/migrate/20150301000000_add_last_activity_to_user.rb +++ b/db/migrate/20150301000000_add_last_activity_to_user.rb @@ -1,4 +1,4 @@ -class AddLastActivityToUser < ActiveRecord::Migration +class AddLastActivityToUser < ActiveRecord::Migration[4.2] def change add_column :users, :last_activity, :datetime end diff --git a/db/migrate/20150923190747_add_boxfill_to_order.rb b/db/migrate/20150923190747_add_boxfill_to_order.rb index 1b4e0c36..f972c5ce 100644 --- a/db/migrate/20150923190747_add_boxfill_to_order.rb +++ b/db/migrate/20150923190747_add_boxfill_to_order.rb @@ -1,4 +1,4 @@ -class AddBoxfillToOrder < ActiveRecord::Migration +class AddBoxfillToOrder < ActiveRecord::Migration[4.2] def change add_column :orders, :boxfill, :datetime end diff --git a/db/migrate/20160217115252_add_deleted_at_to_user.rb b/db/migrate/20160217115252_add_deleted_at_to_user.rb index 88f20c9a..03e4df47 100644 --- a/db/migrate/20160217115252_add_deleted_at_to_user.rb +++ b/db/migrate/20160217115252_add_deleted_at_to_user.rb @@ -1,4 +1,4 @@ -class AddDeletedAtToUser < ActiveRecord::Migration +class AddDeletedAtToUser < ActiveRecord::Migration[4.2] def change add_column :users, :deleted_at, :datetime end diff --git a/db/migrate/20160217124256_add_created_by_user_id_to_invoice.rb b/db/migrate/20160217124256_add_created_by_user_id_to_invoice.rb index 2329faa6..73a05211 100644 --- a/db/migrate/20160217124256_add_created_by_user_id_to_invoice.rb +++ b/db/migrate/20160217124256_add_created_by_user_id_to_invoice.rb @@ -1,4 +1,4 @@ -class AddCreatedByUserIdToInvoice < ActiveRecord::Migration +class AddCreatedByUserIdToInvoice < ActiveRecord::Migration[4.2] def change add_column :invoices, :created_by_user_id, :integer end diff --git a/db/migrate/20160217134742_change_invoice_relation.rb b/db/migrate/20160217134742_change_invoice_relation.rb index 55c3ad98..5f1b962a 100644 --- a/db/migrate/20160217134742_change_invoice_relation.rb +++ b/db/migrate/20160217134742_change_invoice_relation.rb @@ -1,4 +1,4 @@ -class ChangeInvoiceRelation < ActiveRecord::Migration +class ChangeInvoiceRelation < ActiveRecord::Migration[4.2] def up add_column :deliveries, :invoice_id, :integer execute 'UPDATE deliveries SET invoice_id = (SELECT id FROM invoices WHERE delivery_id = deliveries.id)' diff --git a/db/migrate/20160217152621_add_pickup_to_order.rb b/db/migrate/20160217152621_add_pickup_to_order.rb index 62feb344..cc96c69f 100644 --- a/db/migrate/20160217152621_add_pickup_to_order.rb +++ b/db/migrate/20160217152621_add_pickup_to_order.rb @@ -1,4 +1,4 @@ -class AddPickupToOrder < ActiveRecord::Migration +class AddPickupToOrder < ActiveRecord::Migration[4.2] def change add_column :orders, :pickup, :date end diff --git a/db/migrate/20160217164552_add_break_to_group.rb b/db/migrate/20160217164552_add_break_to_group.rb index 1bf4dcfb..25d6056d 100644 --- a/db/migrate/20160217164552_add_break_to_group.rb +++ b/db/migrate/20160217164552_add_break_to_group.rb @@ -1,4 +1,4 @@ -class AddBreakToGroup < ActiveRecord::Migration +class AddBreakToGroup < ActiveRecord::Migration[4.2] def change add_column :groups, :break_start, :date add_column :groups, :break_end, :date diff --git a/db/migrate/20160217194036_add_role_invoices_to_group.rb b/db/migrate/20160217194036_add_role_invoices_to_group.rb index e194db84..6946fe05 100644 --- a/db/migrate/20160217194036_add_role_invoices_to_group.rb +++ b/db/migrate/20160217194036_add_role_invoices_to_group.rb @@ -1,4 +1,4 @@ -class AddRoleInvoicesToGroup < ActiveRecord::Migration +class AddRoleInvoicesToGroup < ActiveRecord::Migration[4.2] def change add_column :groups, :role_invoices, :boolean, :default => false, :null => false end diff --git a/db/migrate/20160218151041_add_attachment_to_invoice.rb b/db/migrate/20160218151041_add_attachment_to_invoice.rb index 0c76e75d..58bac66d 100644 --- a/db/migrate/20160218151041_add_attachment_to_invoice.rb +++ b/db/migrate/20160218151041_add_attachment_to_invoice.rb @@ -1,4 +1,4 @@ -class AddAttachmentToInvoice < ActiveRecord::Migration +class AddAttachmentToInvoice < ActiveRecord::Migration[4.2] def change add_column :invoices, :attachment_mime, :string add_column :invoices, :attachment_data, :binary, :limit => 8.megabyte diff --git a/db/migrate/20160219123220_create_financial_transaction_class_and_types.rb b/db/migrate/20160219123220_create_financial_transaction_class_and_types.rb index 65ac111f..5fcf318b 100644 --- a/db/migrate/20160219123220_create_financial_transaction_class_and_types.rb +++ b/db/migrate/20160219123220_create_financial_transaction_class_and_types.rb @@ -1,4 +1,4 @@ -class CreateFinancialTransactionClassAndTypes < ActiveRecord::Migration +class CreateFinancialTransactionClassAndTypes < ActiveRecord::Migration[4.2] def change create_table :financial_transaction_classes do |t| t.string :name, :null => false diff --git a/db/migrate/20160220000000_create_documents.foodsoft_documents_engine.rb b/db/migrate/20160220000000_create_documents.foodsoft_documents_engine.rb index ac82e3e7..aa43dfe3 100644 --- a/db/migrate/20160220000000_create_documents.foodsoft_documents_engine.rb +++ b/db/migrate/20160220000000_create_documents.foodsoft_documents_engine.rb @@ -1,4 +1,4 @@ -class CreateDocuments < ActiveRecord::Migration +class CreateDocuments < ActiveRecord::Migration[4.2] def self.up create_table :documents do |t| t.string :name diff --git a/db/migrate/20160222000000_create_bank_accounts_and_transactions.rb b/db/migrate/20160222000000_create_bank_accounts_and_transactions.rb index 461f97a0..14775b3e 100644 --- a/db/migrate/20160222000000_create_bank_accounts_and_transactions.rb +++ b/db/migrate/20160222000000_create_bank_accounts_and_transactions.rb @@ -1,4 +1,4 @@ -class CreateBankAccountsAndTransactions < ActiveRecord::Migration +class CreateBankAccountsAndTransactions < ActiveRecord::Migration[4.2] def change create_table :bank_accounts do |t| t.string :name, null: false diff --git a/db/migrate/20160224201529_allow_stock_group_order.rb b/db/migrate/20160224201529_allow_stock_group_order.rb index 2b24f493..a77879e3 100644 --- a/db/migrate/20160224201529_allow_stock_group_order.rb +++ b/db/migrate/20160224201529_allow_stock_group_order.rb @@ -1,4 +1,4 @@ -class AllowStockGroupOrder < ActiveRecord::Migration +class AllowStockGroupOrder < ActiveRecord::Migration[4.2] def self.up change_column :group_orders, :ordergroup_id, :integer, :default => nil, :null => true end diff --git a/db/migrate/20160226000000_add_email_to_message.foodsoft_messages_engine.rb b/db/migrate/20160226000000_add_email_to_message.foodsoft_messages_engine.rb index ad107db2..95b35273 100644 --- a/db/migrate/20160226000000_add_email_to_message.foodsoft_messages_engine.rb +++ b/db/migrate/20160226000000_add_email_to_message.foodsoft_messages_engine.rb @@ -1,5 +1,5 @@ # This migration comes from foodsoft_messages_engine (originally 20160226000000) -class AddEmailToMessage < ActiveRecord::Migration +class AddEmailToMessage < ActiveRecord::Migration[4.2] def change add_column :messages, :salt, :string add_column :messages, :received_email, :binary, :limit => 1.megabyte diff --git a/db/migrate/20160309153440_create_doorkeeper_tables.rb b/db/migrate/20160309153440_create_doorkeeper_tables.rb index af5aa7d8..37ecbe7b 100644 --- a/db/migrate/20160309153440_create_doorkeeper_tables.rb +++ b/db/migrate/20160309153440_create_doorkeeper_tables.rb @@ -1,4 +1,4 @@ -class CreateDoorkeeperTables < ActiveRecord::Migration +class CreateDoorkeeperTables < ActiveRecord::Migration[4.2] def change create_table :oauth_applications do |t| t.string :name, null: false diff --git a/db/migrate/20161001000000_add_iban_to_supplier_and_user.rb b/db/migrate/20161001000000_add_iban_to_supplier_and_user.rb index df9aaca1..fbe87006 100644 --- a/db/migrate/20161001000000_add_iban_to_supplier_and_user.rb +++ b/db/migrate/20161001000000_add_iban_to_supplier_and_user.rb @@ -1,4 +1,4 @@ -class AddIbanToSupplierAndUser < ActiveRecord::Migration +class AddIbanToSupplierAndUser < ActiveRecord::Migration[4.2] def change add_column :suppliers, :iban, :string add_column :users, :iban, :string diff --git a/db/migrate/20170801000000_create_mail_delivery_status.rb b/db/migrate/20170801000000_create_mail_delivery_status.rb index f4c5de65..2fd40674 100644 --- a/db/migrate/20170801000000_create_mail_delivery_status.rb +++ b/db/migrate/20170801000000_create_mail_delivery_status.rb @@ -1,4 +1,4 @@ -class CreateMailDeliveryStatus < ActiveRecord::Migration +class CreateMailDeliveryStatus < ActiveRecord::Migration[4.2] def change create_table :mail_delivery_status do |t| t.datetime :created_at diff --git a/db/migrate/20171001000000_add_last_sent_mail_to_order.rb b/db/migrate/20171001000000_add_last_sent_mail_to_order.rb index d21b0ed9..b5c49ca1 100644 --- a/db/migrate/20171001000000_add_last_sent_mail_to_order.rb +++ b/db/migrate/20171001000000_add_last_sent_mail_to_order.rb @@ -1,4 +1,4 @@ -class AddLastSentMailToOrder < ActiveRecord::Migration +class AddLastSentMailToOrder < ActiveRecord::Migration[4.2] def change add_column :orders, :last_sent_mail, :datetime end diff --git a/db/migrate/20171001020000_add_end_action_to_order.rb b/db/migrate/20171001020000_add_end_action_to_order.rb index 6b6d3a1a..193f558c 100644 --- a/db/migrate/20171001020000_add_end_action_to_order.rb +++ b/db/migrate/20171001020000_add_end_action_to_order.rb @@ -1,4 +1,4 @@ -class AddEndActionToOrder < ActiveRecord::Migration +class AddEndActionToOrder < ActiveRecord::Migration[4.2] def change add_column :orders, :end_action, :integer, default: 0, null: false end diff --git a/db/migrate/20171002000000_create_financial_links.rb b/db/migrate/20171002000000_create_financial_links.rb index 76375c40..5f42ec2e 100644 --- a/db/migrate/20171002000000_create_financial_links.rb +++ b/db/migrate/20171002000000_create_financial_links.rb @@ -1,4 +1,4 @@ -class CreateFinancialLinks < ActiveRecord::Migration +class CreateFinancialLinks < ActiveRecord::Migration[4.2] def change create_table :financial_links do |t| t.text :note diff --git a/db/migrate/20171105000000_add_parent_to_document.foodsoft_documents_engine.rb b/db/migrate/20171105000000_add_parent_to_document.foodsoft_documents_engine.rb index a198c1f8..b1347225 100644 --- a/db/migrate/20171105000000_add_parent_to_document.foodsoft_documents_engine.rb +++ b/db/migrate/20171105000000_add_parent_to_document.foodsoft_documents_engine.rb @@ -1,4 +1,4 @@ -class AddParentToDocument < ActiveRecord::Migration +class AddParentToDocument < ActiveRecord::Migration[4.2] def change add_reference :documents, :parent, index: true end diff --git a/db/migrate/20171111000000_add_role_pickups_to_group.rb b/db/migrate/20171111000000_add_role_pickups_to_group.rb index 771c93bf..e7ea0aef 100644 --- a/db/migrate/20171111000000_add_role_pickups_to_group.rb +++ b/db/migrate/20171111000000_add_role_pickups_to_group.rb @@ -1,4 +1,4 @@ -class AddRolePickupsToGroup < ActiveRecord::Migration +class AddRolePickupsToGroup < ActiveRecord::Migration[4.2] def change add_column :groups, :role_pickups, :boolean, default: false, null: false end diff --git a/db/migrate/20171201000000_add_name_short_to_financial_transaction_type.rb b/db/migrate/20171201000000_add_name_short_to_financial_transaction_type.rb index 653cca34..13c62874 100644 --- a/db/migrate/20171201000000_add_name_short_to_financial_transaction_type.rb +++ b/db/migrate/20171201000000_add_name_short_to_financial_transaction_type.rb @@ -1,4 +1,4 @@ -class AddNameShortToFinancialTransactionType < ActiveRecord::Migration +class AddNameShortToFinancialTransactionType < ActiveRecord::Migration[4.2] def change add_column :financial_transaction_types, :name_short, :string add_index :financial_transaction_types, :name_short diff --git a/db/migrate/20181013195028_add_confidential_to_applications.rb b/db/migrate/20181013195028_add_confidential_to_applications.rb index 3f6dbbd7..5dd96996 100644 --- a/db/migrate/20181013195028_add_confidential_to_applications.rb +++ b/db/migrate/20181013195028_add_confidential_to_applications.rb @@ -1,4 +1,4 @@ -class AddConfidentialToApplications < ActiveRecord::Migration +class AddConfidentialToApplications < ActiveRecord::Migration[4.2] def change add_column :oauth_applications, :confidential, :boolean, null: false, default: true end diff --git a/db/migrate/20181110000000_create_polls.foodsoft_polls_engine.rb b/db/migrate/20181110000000_create_polls.foodsoft_polls_engine.rb index f45be067..990e75f0 100644 --- a/db/migrate/20181110000000_create_polls.foodsoft_polls_engine.rb +++ b/db/migrate/20181110000000_create_polls.foodsoft_polls_engine.rb @@ -1,4 +1,4 @@ -class CreatePolls < ActiveRecord::Migration +class CreatePolls < ActiveRecord::Migration[4.2] def change create_table :polls do |t| t.integer :created_by_user_id, null: false diff --git a/db/migrate/20181120000000_increase_choices_size.foodsoft_polls_engine.rb b/db/migrate/20181120000000_increase_choices_size.foodsoft_polls_engine.rb index 5c77f7fe..d809e3ea 100644 --- a/db/migrate/20181120000000_increase_choices_size.foodsoft_polls_engine.rb +++ b/db/migrate/20181120000000_increase_choices_size.foodsoft_polls_engine.rb @@ -1,4 +1,4 @@ -class IncreaseChoicesSize < ActiveRecord::Migration +class IncreaseChoicesSize < ActiveRecord::Migration[4.2] def up change_column :polls, :choices, :text, limit: 65535 end diff --git a/db/migrate/20181201000000_create_printer_jobs.foodsoft_printer_engine.rb b/db/migrate/20181201000000_create_printer_jobs.foodsoft_printer_engine.rb index 07e40884..ee7665e4 100644 --- a/db/migrate/20181201000000_create_printer_jobs.foodsoft_printer_engine.rb +++ b/db/migrate/20181201000000_create_printer_jobs.foodsoft_printer_engine.rb @@ -1,4 +1,4 @@ -class CreatePrinterJobs < ActiveRecord::Migration +class CreatePrinterJobs < ActiveRecord::Migration[4.2] def change create_table :printer_jobs do |t| t.references :order diff --git a/db/migrate/20181201000100_create_message_recipients.foodsoft_messages.rb b/db/migrate/20181201000100_create_message_recipients.foodsoft_messages.rb index ecc5bbcf..e931f748 100644 --- a/db/migrate/20181201000100_create_message_recipients.foodsoft_messages.rb +++ b/db/migrate/20181201000100_create_message_recipients.foodsoft_messages.rb @@ -1,4 +1,4 @@ -class CreateMessageRecipients < ActiveRecord::Migration +class CreateMessageRecipients < ActiveRecord::Migration[4.2] class Message < ActiveRecord::Base has_many :message_recipients end diff --git a/db/migrate/20181201000200_add_deleted_to_financial_transaction_type.rb b/db/migrate/20181201000200_add_deleted_to_financial_transaction_type.rb index 2a2a3b32..2c1c0c8f 100644 --- a/db/migrate/20181201000200_add_deleted_to_financial_transaction_type.rb +++ b/db/migrate/20181201000200_add_deleted_to_financial_transaction_type.rb @@ -1,4 +1,4 @@ -class AddDeletedToFinancialTransactionType < ActiveRecord::Migration +class AddDeletedToFinancialTransactionType < ActiveRecord::Migration[4.2] def change change_table :financial_transactions do |t| t.integer :reverts_id diff --git a/db/migrate/20181201000210_add_group_order_to_financial_transaction.rb b/db/migrate/20181201000210_add_group_order_to_financial_transaction.rb index 5e991e6a..a2f81690 100644 --- a/db/migrate/20181201000210_add_group_order_to_financial_transaction.rb +++ b/db/migrate/20181201000210_add_group_order_to_financial_transaction.rb @@ -1,4 +1,4 @@ -class AddGroupOrderToFinancialTransaction < ActiveRecord::Migration +class AddGroupOrderToFinancialTransaction < ActiveRecord::Migration[4.2] def change add_reference :financial_transactions, :group_order end diff --git a/db/migrate/20181201000220_add_transport_to_order.rb b/db/migrate/20181201000220_add_transport_to_order.rb index 7da7f15e..3fd8e2bf 100644 --- a/db/migrate/20181201000220_add_transport_to_order.rb +++ b/db/migrate/20181201000220_add_transport_to_order.rb @@ -1,4 +1,4 @@ -class AddTransportToOrder < ActiveRecord::Migration +class AddTransportToOrder < ActiveRecord::Migration[4.2] def change add_column :orders, :transport, :decimal, precision: 8, scale: 2 add_column :group_orders, :transport, :decimal, precision: 8, scale: 2 diff --git a/db/migrate/20181201000300_allow_emtpy_ordergroup_in_financial_transaction.rb b/db/migrate/20181201000300_allow_emtpy_ordergroup_in_financial_transaction.rb index fae980cc..346f421c 100644 --- a/db/migrate/20181201000300_allow_emtpy_ordergroup_in_financial_transaction.rb +++ b/db/migrate/20181201000300_allow_emtpy_ordergroup_in_financial_transaction.rb @@ -1,4 +1,4 @@ -class AllowEmtpyOrdergroupInFinancialTransaction < ActiveRecord::Migration +class AllowEmtpyOrdergroupInFinancialTransaction < ActiveRecord::Migration[4.2] def change change_column_null :financial_transactions, :ordergroup_id, true end diff --git a/db/migrate/20181201000301_change_ordergroup_default_in_financial_transaction.rb b/db/migrate/20181201000301_change_ordergroup_default_in_financial_transaction.rb index 7705d687..8506ddff 100644 --- a/db/migrate/20181201000301_change_ordergroup_default_in_financial_transaction.rb +++ b/db/migrate/20181201000301_change_ordergroup_default_in_financial_transaction.rb @@ -1,4 +1,4 @@ -class ChangeOrdergroupDefaultInFinancialTransaction < ActiveRecord::Migration +class ChangeOrdergroupDefaultInFinancialTransaction < ActiveRecord::Migration[4.2] class FinancialTransaction < ActiveRecord::Base; end def up diff --git a/db/migrate/20181201000302_change_stock_supplier_to_null_in_order.rb b/db/migrate/20181201000302_change_stock_supplier_to_null_in_order.rb index 9c1f8e96..da329269 100644 --- a/db/migrate/20181201000302_change_stock_supplier_to_null_in_order.rb +++ b/db/migrate/20181201000302_change_stock_supplier_to_null_in_order.rb @@ -1,4 +1,4 @@ -class ChangeStockSupplierToNullInOrder < ActiveRecord::Migration +class ChangeStockSupplierToNullInOrder < ActiveRecord::Migration[4.2] class Order < ActiveRecord::Base; end def up diff --git a/db/migrate/20181201000305_ensure_article_for_article_price.rb b/db/migrate/20181201000305_ensure_article_for_article_price.rb index 8dc00274..7ff20346 100644 --- a/db/migrate/20181201000305_ensure_article_for_article_price.rb +++ b/db/migrate/20181201000305_ensure_article_for_article_price.rb @@ -1,4 +1,4 @@ -class EnsureArticleForArticlePrice < ActiveRecord::Migration +class EnsureArticleForArticlePrice < ActiveRecord::Migration[4.2] class ArticlePrice < ActiveRecord::Base; end def change diff --git a/db/migrate/20181201000400_create_supplier_categories.rb b/db/migrate/20181201000400_create_supplier_categories.rb index 44900f26..f831bb30 100644 --- a/db/migrate/20181201000400_create_supplier_categories.rb +++ b/db/migrate/20181201000400_create_supplier_categories.rb @@ -1,4 +1,4 @@ -class CreateSupplierCategories < ActiveRecord::Migration +class CreateSupplierCategories < ActiveRecord::Migration[4.2] class FinancialTransactionClass < ActiveRecord::Base; end class SupplierCategory < ActiveRecord::Base; end class Supplier < ActiveRecord::Base; end diff --git a/db/migrate/20181203000000_create_links.foodsoft_links.rb b/db/migrate/20181203000000_create_links.foodsoft_links.rb index 4d43473f..b0afd7db 100644 --- a/db/migrate/20181203000000_create_links.foodsoft_links.rb +++ b/db/migrate/20181203000000_create_links.foodsoft_links.rb @@ -1,4 +1,4 @@ -class CreateLinks < ActiveRecord::Migration +class CreateLinks < ActiveRecord::Migration[4.2] def change create_table :links do |t| t.string :name, null: false diff --git a/db/migrate/20181204000000_clear_invalid_invoices_from_orders.rb b/db/migrate/20181204000000_clear_invalid_invoices_from_orders.rb index 73211138..5980fd3e 100644 --- a/db/migrate/20181204000000_clear_invalid_invoices_from_orders.rb +++ b/db/migrate/20181204000000_clear_invalid_invoices_from_orders.rb @@ -1,4 +1,4 @@ -class ClearInvalidInvoicesFromOrders < ActiveRecord::Migration +class ClearInvalidInvoicesFromOrders < ActiveRecord::Migration[4.2] class Order < ActiveRecord::Base; end class Invoice < ActiveRecord::Base; end diff --git a/db/migrate/20181204010000_change_marked_as_deleted_names.rb b/db/migrate/20181204010000_change_marked_as_deleted_names.rb index fdc09cac..e13b2573 100644 --- a/db/migrate/20181204010000_change_marked_as_deleted_names.rb +++ b/db/migrate/20181204010000_change_marked_as_deleted_names.rb @@ -1,4 +1,4 @@ -class ChangeMarkedAsDeletedNames < ActiveRecord::Migration +class ChangeMarkedAsDeletedNames < ActiveRecord::Migration[4.2] def up execute "UPDATE groups SET name = REPLACE(name, '\\u2020', '\u2020') WHERE deleted_at IS NOT NULL" execute "UPDATE suppliers SET name = REPLACE(name, '\\u2020', '\u2020') WHERE deleted_at IS NOT NULL" diff --git a/db/migrate/20181204060000_change_delivered_on_to_date.rb b/db/migrate/20181204060000_change_delivered_on_to_date.rb index 8bf988a2..89c28e29 100644 --- a/db/migrate/20181204060000_change_delivered_on_to_date.rb +++ b/db/migrate/20181204060000_change_delivered_on_to_date.rb @@ -1,4 +1,4 @@ -class ChangeDeliveredOnToDate < ActiveRecord::Migration +class ChangeDeliveredOnToDate < ActiveRecord::Migration[4.2] def change rename_column :deliveries, :delivered_on, :date end diff --git a/db/migrate/20181204070000_create_stock_events.rb b/db/migrate/20181204070000_create_stock_events.rb index 179d8772..50974900 100644 --- a/db/migrate/20181204070000_create_stock_events.rb +++ b/db/migrate/20181204070000_create_stock_events.rb @@ -1,4 +1,4 @@ -class CreateStockEvents < ActiveRecord::Migration +class CreateStockEvents < ActiveRecord::Migration[4.2] class StockEvent < ActiveRecord::Base; end class StockTaking < ActiveRecord::Base; end diff --git a/db/migrate/20181205000000_add_user_to_task.rb b/db/migrate/20181205000000_add_user_to_task.rb index d9ddb11c..ef6332cc 100644 --- a/db/migrate/20181205000000_add_user_to_task.rb +++ b/db/migrate/20181205000000_add_user_to_task.rb @@ -1,4 +1,4 @@ -class AddUserToTask < ActiveRecord::Migration +class AddUserToTask < ActiveRecord::Migration[4.2] def change add_column :tasks, :created_by_user_id, :integer diff --git a/db/migrate/20181205010000_add_bank_account_to_financial_transaction_type.rb b/db/migrate/20181205010000_add_bank_account_to_financial_transaction_type.rb index 5cd98638..4466aa9b 100644 --- a/db/migrate/20181205010000_add_bank_account_to_financial_transaction_type.rb +++ b/db/migrate/20181205010000_add_bank_account_to_financial_transaction_type.rb @@ -1,4 +1,4 @@ -class AddBankAccountToFinancialTransactionType < ActiveRecord::Migration +class AddBankAccountToFinancialTransactionType < ActiveRecord::Migration[4.2] def change add_reference :financial_transaction_types, :bank_account end diff --git a/plugins/documents/db/migrate/20160220000000_create_documents.rb b/plugins/documents/db/migrate/20160220000000_create_documents.rb index ac82e3e7..aa43dfe3 100644 --- a/plugins/documents/db/migrate/20160220000000_create_documents.rb +++ b/plugins/documents/db/migrate/20160220000000_create_documents.rb @@ -1,4 +1,4 @@ -class CreateDocuments < ActiveRecord::Migration +class CreateDocuments < ActiveRecord::Migration[4.2] def self.up create_table :documents do |t| t.string :name diff --git a/plugins/documents/db/migrate/20171105000000_add_parent_to_document.rb b/plugins/documents/db/migrate/20171105000000_add_parent_to_document.rb index a198c1f8..b1347225 100644 --- a/plugins/documents/db/migrate/20171105000000_add_parent_to_document.rb +++ b/plugins/documents/db/migrate/20171105000000_add_parent_to_document.rb @@ -1,4 +1,4 @@ -class AddParentToDocument < ActiveRecord::Migration +class AddParentToDocument < ActiveRecord::Migration[4.2] def change add_reference :documents, :parent, index: true end diff --git a/plugins/links/db/migrate/20181203000000_create_links.rb b/plugins/links/db/migrate/20181203000000_create_links.rb index 4d43473f..b0afd7db 100644 --- a/plugins/links/db/migrate/20181203000000_create_links.rb +++ b/plugins/links/db/migrate/20181203000000_create_links.rb @@ -1,4 +1,4 @@ -class CreateLinks < ActiveRecord::Migration +class CreateLinks < ActiveRecord::Migration[4.2] def change create_table :links do |t| t.string :name, null: false diff --git a/plugins/messages/db/migrate/20090120184410_create_messages.rb.skip b/plugins/messages/db/migrate/20090120184410_create_messages.rb.skip index 29bb25d1..1d44231a 100644 --- a/plugins/messages/db/migrate/20090120184410_create_messages.rb.skip +++ b/plugins/messages/db/migrate/20090120184410_create_messages.rb.skip @@ -5,7 +5,7 @@ # attempt to create an already existing messages table. # # extracted from 20090120184410_road_to_version_three.rb -class CreateMessages < ActiveRecord::Migration +class CreateMessages < ActiveRecord::Migration[4.2] def self.up create_table :messages do |t| t.references :sender diff --git a/plugins/messages/db/migrate/20160226000000_add_email_to_message.rb b/plugins/messages/db/migrate/20160226000000_add_email_to_message.rb index c7b4c6f5..411600c7 100644 --- a/plugins/messages/db/migrate/20160226000000_add_email_to_message.rb +++ b/plugins/messages/db/migrate/20160226000000_add_email_to_message.rb @@ -1,4 +1,4 @@ -class AddEmailToMessage < ActiveRecord::Migration +class AddEmailToMessage < ActiveRecord::Migration[4.2] def change add_column :messages, :salt, :string add_column :messages, :received_email, :binary, :limit => 1.megabyte diff --git a/plugins/polls/db/migrate/20181110000000_create_polls.rb b/plugins/polls/db/migrate/20181110000000_create_polls.rb index f45be067..990e75f0 100644 --- a/plugins/polls/db/migrate/20181110000000_create_polls.rb +++ b/plugins/polls/db/migrate/20181110000000_create_polls.rb @@ -1,4 +1,4 @@ -class CreatePolls < ActiveRecord::Migration +class CreatePolls < ActiveRecord::Migration[4.2] def change create_table :polls do |t| t.integer :created_by_user_id, null: false diff --git a/plugins/polls/db/migrate/20181120000000_increase_choices_size.rb b/plugins/polls/db/migrate/20181120000000_increase_choices_size.rb index 5c77f7fe..d809e3ea 100644 --- a/plugins/polls/db/migrate/20181120000000_increase_choices_size.rb +++ b/plugins/polls/db/migrate/20181120000000_increase_choices_size.rb @@ -1,4 +1,4 @@ -class IncreaseChoicesSize < ActiveRecord::Migration +class IncreaseChoicesSize < ActiveRecord::Migration[4.2] def up change_column :polls, :choices, :text, limit: 65535 end diff --git a/plugins/printer/db/migrate/20181201000000_create_printer_jobs.rb b/plugins/printer/db/migrate/20181201000000_create_printer_jobs.rb index 07e40884..ee7665e4 100644 --- a/plugins/printer/db/migrate/20181201000000_create_printer_jobs.rb +++ b/plugins/printer/db/migrate/20181201000000_create_printer_jobs.rb @@ -1,4 +1,4 @@ -class CreatePrinterJobs < ActiveRecord::Migration +class CreatePrinterJobs < ActiveRecord::Migration[4.2] def change create_table :printer_jobs do |t| t.references :order diff --git a/plugins/wiki/db/migrate/20090325175756_create_pages.rb b/plugins/wiki/db/migrate/20090325175756_create_pages.rb index a8184c60..846decf8 100644 --- a/plugins/wiki/db/migrate/20090325175756_create_pages.rb +++ b/plugins/wiki/db/migrate/20090325175756_create_pages.rb @@ -1,4 +1,4 @@ -class CreatePages < ActiveRecord::Migration +class CreatePages < ActiveRecord::Migration[4.2] def self.up create_table :pages do |t| t.string :title