foodsoft/db/migrate
Patrick Gansterer e7657b987f Update model to support financial transactions #367
This change introduces two new data types to group the financial
transactions. Now every transaction has a "type", which itself belongs
to a "class".
Types should be used add structured information to an transaction, instead
of writing it into the notice textfield. E.g. this could be used to have
different types depending on the source of money (cash vs. bank transfer).
Classes are shown as different columns in the tables and will be uses to
group transactions of specific types. They should be used if not the whole
amount of ordergroup should be used to order food. E.g. if there is a
deposit or membership fee, which is independent of the normal credit.
This will allow us to implement additional features based on classes in
the future. E.g. the sum of transactions in the "membership fee" class
must be positive to allow food orders or show a big warning if it is bellow
a certain value.
2017-12-09 11:51:23 +01:00
..
001_create_users.rb Initial commit of foodsoft 2 2009-01-06 11:49:19 +01:00
002_create_groups.rb Initial commit of foodsoft 2 2009-01-06 11:49:19 +01:00
003_create_suppliers.rb Initial commit of foodsoft 2 2009-01-06 11:49:19 +01:00
004_create_article_meta.rb Initial commit of foodsoft 2 2009-01-06 11:49:19 +01:00
005_create_financial_transactions.rb Initial commit of foodsoft 2 2009-01-06 11:49:19 +01:00
006_create_articles.rb Initial commit of foodsoft 2 2009-01-06 11:49:19 +01:00
007_create_article_prices.rb Initial commit of foodsoft 2 2009-01-06 11:49:19 +01:00
008_create_orders.rb Initial commit of foodsoft 2 2009-01-06 11:49:19 +01:00
009_create_order_results.rb Initial commit of foodsoft 2 2009-01-06 11:49:19 +01:00
010_user_password_reset.rb Initial commit of foodsoft 2 2009-01-06 11:49:19 +01:00
011_create_comments.rb Initial commit of foodsoft 2 2009-01-06 11:49:19 +01:00
012_create_order_clearing.rb Initial commit of foodsoft 2 2009-01-06 11:49:19 +01:00
013_add_messaging.rb Initial commit of foodsoft 2 2009-01-06 11:49:19 +01:00
014_create_tasks.rb Initial commit of foodsoft 2 2009-01-06 11:49:19 +01:00
015_change_result_quantities.rb Initial commit of foodsoft 2 2009-01-06 11:49:19 +01:00
016_add_shared_lists_connection.rb Initial commit of foodsoft 2 2009-01-06 11:49:19 +01:00
017_add_min_order_quantity.rb Initial commit of foodsoft 2 2009-01-06 11:49:19 +01:00
018_create_invites.rb Initial commit of foodsoft 2 2009-01-06 11:49:19 +01:00
019_remove_uniqueness_of_article_name.rb Initial commit of foodsoft 2 2009-01-06 11:49:19 +01:00
020_add_users_last_login.rb Initial commit of foodsoft 2 2009-01-06 11:49:19 +01:00
021_remove_table_article_prices.rb Initial commit of foodsoft 2 2009-01-06 11:49:19 +01:00
022_add_required_user_for_task.rb Initial commit of foodsoft 2 2009-01-06 11:49:19 +01:00
023_new_wording.rb Initial commit of foodsoft 2 2009-01-06 11:49:19 +01:00
024_add_deposit_defaults.rb Initial commit of foodsoft 2 2009-01-06 11:49:19 +01:00
025_extend_comments.rb Initial commit of foodsoft 2 2009-01-06 11:49:19 +01:00
20090120184410_road_to_version_three.rb Some language fixes. Finished migration path. 2009-03-01 18:45:34 +01:00
20090317175355_add_profit_to_orders.rb Fixed bug order.profit calculation. 2009-03-17 19:43:41 +01:00
20090325175756_create_pages.foodsoft_wiki_engine.rb fix migration name 2013-11-07 12:03:28 +01:00
20090405131156_modify_group_order_article_result.rb Allow input of decimal numbers for GroupOrderArticle-result. 2009-04-05 15:23:21 +02:00
20090731132547_add_stats_to_groups.rb Implemented stats for ordergroups on startpage. Annotated models. 2009-08-01 13:41:22 +02:00
20090811144901_add_weekly_to_tasks.rb Added rake task for auto create of upcoming workgroup tasks (weekly tasks). 2009-08-11 17:22:08 +02:00
20090812110010_add_note_to_deliveries.rb Added note to deliveries. Closes #34 2009-08-12 13:09:10 +02:00
20090907120012_add_missing_indexes.rb Add indexes for better sql query performance. 2009-09-07 15:35:19 +02:00
20110507184920_add_duration_to_tasks.rb Consider task duration in ordergroup stats. 2011-05-07 21:54:00 +02:00
20110507192928_add_task_duration_to_workgroups.rb Consider task duration in ordergroup stats. 2011-05-07 21:54:00 +02:00
20120512211613_add_order_indexes.rb Added database indexes. Performance boost for balance page. 2012-06-26 23:27:25 +02:00
20120622094337_add_next_weekly_tasks_number_to_workgroups.rb Allow changing number of automaticly created next weekly tasks. 2012-06-24 11:01:16 +02:00
20120929155541_add_ignore_apple_restriction_to_groups.rb Allow ignoring apple restriction for specific ordergroup. 2012-09-30 13:34:16 +02:00
20121112093327_add_created_by_user_id_to_orders.rb Add created_by_user_id to Order table 2012-11-12 11:37:26 +01:00
20121216180646_remove_assigned_from_tasks.rb Fixed some bugs in tasks, apple feature: 2012-12-16 19:07:45 +01:00
20121230142516_remove_account_updated_from_ordergroups.rb Replace ordergroup.account_updated with non database attr. 2012-12-30 15:31:37 +01:00
20130615073715_create_periodic_task_groups.rb Added up and down migration for weekly task data. 2013-06-22 17:35:45 +02:00
20130622095040_move_weekly_tasks.rb Fxed encoding error when uploading files with non-ascii characters. 2013-09-02 16:46:44 +02:00
20130624084223_remove_weekly_from_tasks.rb Added missing migration files. 2013-06-24 12:02:22 +02:00
20130624085246_remove_weekly_task_from_groups.rb Added missing migration files. 2013-06-24 12:02:22 +02:00
20130702113610_update_group_order_totals.rb do not recalculate GroupOrder totals, but show message to do so on migrations 2013-09-18 18:33:49 +02:00
20130718183100_create_settings.rb Merge remote-tracking branch 'fsmanuel/master' into master. 2013-07-18 18:48:49 +02:00
20130718183101_migrate_user_settings.rb Allow setting default locale in user settings migration. 2013-09-02 10:42:05 +02:00
20130920201529_allow_missing_nick.rb allow to login with email instead of nick as well + tests 2013-09-20 22:39:19 +02:00
20130930132511_add_quantities_to_order_article.rb add receive screen, quantities for model, redistribution 2013-11-25 14:17:31 +01:00
20140102170431_add_result_computed_to_group_order_articles.rb fix migration, complements 7aae7f4d55 2014-01-03 12:50:49 +01:00
20140318173000_delete_empty_group_order_articles.rb do not store GroupOrderArticles with zero quantity and tolerance 2014-05-13 17:01:26 +02:00
20140521142651_add_sync_method_to_supplier.rb allow to synchronize all articles of a shared supplier 2014-09-02 12:58:31 +02:00
20140921104907_remove_stale_memberships.rb Remove all memberships where belonging group was deleted. 2014-09-21 12:54:01 +02:00
20141211210719_increase_account_balance_precision.rb Increase account_balance precision (closes foodcoops/foodsoft#322) 2014-12-11 22:12:19 +01:00
20150227161931_add_replyto_and_groupid_to_messages.rb Add forgotten migration 2015-02-27 17:59:30 +01:00
20150301000000_add_last_activity_to_user.rb Add last user login and activity 2015-03-03 14:55:30 +01:00
20150923190747_add_boxfill_to_order.rb Add optional boxfill phase to orders 2015-11-13 18:10:46 +01:00
20160217115252_add_deleted_at_to_user.rb Add deleted_at for User 2016-03-04 19:03:52 +01:00
20160217124256_add_created_by_user_id_to_invoice.rb Add created_by to invoice and show it 2016-02-24 00:39:07 +01:00
20160217134742_change_invoice_relation.rb Change relationship of invoices #390 2016-03-04 15:55:39 +01:00
20160217152621_add_pickup_to_order.rb Add pickup date 2016-04-29 15:28:05 +02:00
20160217164552_add_break_to_group.rb Add break to ordergroup 2016-03-08 04:38:13 +01:00
20160217194036_add_role_invoices_to_group.rb Add role_invoices 2016-03-04 16:06:02 +01:00
20160218151041_add_attachment_to_invoice.rb Add possibility to add an attachment to an invoice #345 2016-05-06 15:04:58 +02:00
20160219123220_create_financial_transaction_class_and_types.rb Update model to support financial transactions #367 2017-12-09 11:51:23 +01:00
20160220000000_create_documents.foodsoft_documents_engine.rb Enable documents plugin by default 2017-10-12 20:46:39 +02:00
20160224201529_allow_stock_group_order.rb Add stock group order 2016-03-11 13:15:16 +01:00
20160226000000_add_email_to_message.foodsoft_messages_engine.rb Add handling for message reply via email 2016-03-04 18:11:27 +01:00
20161001000000_add_iban_to_supplier_and_user.rb Add IBAN field to supplier and user model 2017-01-21 22:43:48 +01:00
20170801000000_create_mail_delivery_status.rb Log mail delivery errors to database and add an UI for it 2017-10-02 16:02:39 +02:00
20171001000000_add_last_sent_mail_to_order.rb Save the timestamp of the last mail to supplier and confirm resending it 2017-10-11 23:48:27 +02:00
20171001020000_add_end_action_to_order.rb Add an option to automatically finish an order 2017-10-12 21:14:29 +02:00
20171002000000_create_financial_links.rb Add FinancialLinks 2017-10-28 20:17:16 +02:00
20171105000000_add_parent_to_document.foodsoft_documents_engine.rb Add folders to the documents plugin 2017-11-21 10:12:13 +01:00