Add Rails release to ActiveRecord::Migration

This commit is contained in:
Patrick Gansterer 2020-08-07 01:14:14 +02:00
parent 44a198c7bc
commit 74531f90c7
108 changed files with 108 additions and 108 deletions

View File

@ -1,4 +1,4 @@
class CreateUsers < ActiveRecord::Migration
class CreateUsers < ActiveRecord::Migration[4.2]
USER_ADMIN = 'admin'
USER_TEST = 'test'

View File

@ -1,4 +1,4 @@
class CreateGroups < ActiveRecord::Migration
class CreateGroups < ActiveRecord::Migration[4.2]
GROUP_ADMIN = 'Administrators'
GROUP_ORDER = 'Sample Order Group'

View File

@ -1,4 +1,4 @@
class CreateSuppliers < ActiveRecord::Migration
class CreateSuppliers < ActiveRecord::Migration[4.2]
SUPPLIER_SAMPLE = 'Sample Supplier'
def self.up

View File

@ -1,4 +1,4 @@
class CreateArticleMeta < ActiveRecord::Migration
class CreateArticleMeta < ActiveRecord::Migration[4.2]
CATEGORY_SAMPLE = 'Sample Category'
TAX_STANDARD = 'Standard'
TAX_REDUCED = 'Reduced'

View File

@ -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|

View File

@ -1,4 +1,4 @@
class CreateArticles < ActiveRecord::Migration
class CreateArticles < ActiveRecord::Migration[4.2]
SAMPLE_ARTICLE_NAMES = ['banana', 'kiwi', 'strawberry']
def self.up

View File

@ -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

View File

@ -1,4 +1,4 @@
class CreateOrders < ActiveRecord::Migration
class CreateOrders < ActiveRecord::Migration[4.2]
ORDER_TEST = 'Test Order'
GROUP_ORDER = 'Orders'

View File

@ -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

View File

@ -1,4 +1,4 @@
class UserPasswordReset < ActiveRecord::Migration
class UserPasswordReset < ActiveRecord::Migration[4.2]
def self.up
add_column :users, :reset_password_token, :string

View File

@ -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 => ""

View File

@ -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

View File

@ -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|

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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]

View File

@ -1,4 +1,4 @@
class AddUsersLastLogin < ActiveRecord::Migration
class AddUsersLastLogin < ActiveRecord::Migration[4.2]
def self.up
add_column :users, :last_login, :datetime
end

View File

@ -1,4 +1,4 @@
class RemoveTableArticlePrices < ActiveRecord::Migration
class RemoveTableArticlePrices < ActiveRecord::Migration[4.2]
def self.up
puts "create columns in articles ..."

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,4 @@
class ExtendComments < ActiveRecord::Migration
class ExtendComments < ActiveRecord::Migration[4.2]
def self.up
change_column :comments, :comment, :text, :default => ""
end

View File

@ -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.

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,4 @@
class AddStatsToGroups < ActiveRecord::Migration
class AddStatsToGroups < ActiveRecord::Migration[4.2]
def self.up
add_column :groups, :stats, :text

View File

@ -1,4 +1,4 @@
class AddWeeklyToTasks < ActiveRecord::Migration
class AddWeeklyToTasks < ActiveRecord::Migration[4.2]
def self.up
add_column :tasks, :weekly, :boolean
end

View File

@ -1,4 +1,4 @@
class AddNoteToDeliveries < ActiveRecord::Migration
class AddNoteToDeliveries < ActiveRecord::Migration[4.2]
def self.up
add_column :deliveries, :note, :text
end

View File

@ -1,4 +1,4 @@
class AddMissingIndexes < ActiveRecord::Migration
class AddMissingIndexes < ActiveRecord::Migration[4.2]
def self.up
add_index "article_prices", ["article_id"]

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,4 @@
class RemoveAssignedFromTasks < ActiveRecord::Migration
class RemoveAssignedFromTasks < ActiveRecord::Migration[4.2]
def up
remove_column :tasks, :assigned
end

View File

@ -1,4 +1,4 @@
class RemoveAccountUpdatedFromOrdergroups < ActiveRecord::Migration
class RemoveAccountUpdatedFromOrdergroups < ActiveRecord::Migration[4.2]
def up
remove_column :groups, :account_updated
end

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,4 @@
class RemoveWeeklyFromTasks < ActiveRecord::Migration
class RemoveWeeklyFromTasks < ActiveRecord::Migration[4.2]
def up
remove_column :tasks, :weekly
end

View File

@ -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

View File

@ -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 " +

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,4 @@
class AddSyncMethodToSupplier < ActiveRecord::Migration
class AddSyncMethodToSupplier < ActiveRecord::Migration[4.2]
def change
add_column :suppliers, :shared_sync_method, :string
end

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,4 @@
class AddLastActivityToUser < ActiveRecord::Migration
class AddLastActivityToUser < ActiveRecord::Migration[4.2]
def change
add_column :users, :last_activity, :datetime
end

View File

@ -1,4 +1,4 @@
class AddBoxfillToOrder < ActiveRecord::Migration
class AddBoxfillToOrder < ActiveRecord::Migration[4.2]
def change
add_column :orders, :boxfill, :datetime
end

View File

@ -1,4 +1,4 @@
class AddDeletedAtToUser < ActiveRecord::Migration
class AddDeletedAtToUser < ActiveRecord::Migration[4.2]
def change
add_column :users, :deleted_at, :datetime
end

View File

@ -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

View File

@ -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)'

View File

@ -1,4 +1,4 @@
class AddPickupToOrder < ActiveRecord::Migration
class AddPickupToOrder < ActiveRecord::Migration[4.2]
def change
add_column :orders, :pickup, :date
end

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,4 @@
class AddLastSentMailToOrder < ActiveRecord::Migration
class AddLastSentMailToOrder < ActiveRecord::Migration[4.2]
def change
add_column :orders, :last_sent_mail, :datetime
end

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,4 @@
class AddParentToDocument < ActiveRecord::Migration
class AddParentToDocument < ActiveRecord::Migration[4.2]
def change
add_reference :documents, :parent, index: true
end

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,4 @@
class IncreaseChoicesSize < ActiveRecord::Migration
class IncreaseChoicesSize < ActiveRecord::Migration[4.2]
def up
change_column :polls, :choices, :text, limit: 65535
end

View File

@ -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

View File

@ -1,4 +1,4 @@
class CreateMessageRecipients < ActiveRecord::Migration
class CreateMessageRecipients < ActiveRecord::Migration[4.2]
class Message < ActiveRecord::Base
has_many :message_recipients
end

View File

@ -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

View File

@ -1,4 +1,4 @@
class AddGroupOrderToFinancialTransaction < ActiveRecord::Migration
class AddGroupOrderToFinancialTransaction < ActiveRecord::Migration[4.2]
def change
add_reference :financial_transactions, :group_order
end

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,4 @@
class ChangeOrdergroupDefaultInFinancialTransaction < ActiveRecord::Migration
class ChangeOrdergroupDefaultInFinancialTransaction < ActiveRecord::Migration[4.2]
class FinancialTransaction < ActiveRecord::Base; end
def up

View File

@ -1,4 +1,4 @@
class ChangeStockSupplierToNullInOrder < ActiveRecord::Migration
class ChangeStockSupplierToNullInOrder < ActiveRecord::Migration[4.2]
class Order < ActiveRecord::Base; end
def up

View File

@ -1,4 +1,4 @@
class EnsureArticleForArticlePrice < ActiveRecord::Migration
class EnsureArticleForArticlePrice < ActiveRecord::Migration[4.2]
class ArticlePrice < ActiveRecord::Base; end
def change

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,4 @@
class ClearInvalidInvoicesFromOrders < ActiveRecord::Migration
class ClearInvalidInvoicesFromOrders < ActiveRecord::Migration[4.2]
class Order < ActiveRecord::Base; end
class Invoice < ActiveRecord::Base; end

View File

@ -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"

View File

@ -1,4 +1,4 @@
class ChangeDeliveredOnToDate < ActiveRecord::Migration
class ChangeDeliveredOnToDate < ActiveRecord::Migration[4.2]
def change
rename_column :deliveries, :delivered_on, :date
end

View File

@ -1,4 +1,4 @@
class CreateStockEvents < ActiveRecord::Migration
class CreateStockEvents < ActiveRecord::Migration[4.2]
class StockEvent < ActiveRecord::Base; end
class StockTaking < ActiveRecord::Base; end

View File

@ -1,4 +1,4 @@
class AddUserToTask < ActiveRecord::Migration
class AddUserToTask < ActiveRecord::Migration[4.2]
def change
add_column :tasks, :created_by_user_id, :integer

View File

@ -1,4 +1,4 @@
class AddBankAccountToFinancialTransactionType < ActiveRecord::Migration
class AddBankAccountToFinancialTransactionType < ActiveRecord::Migration[4.2]
def change
add_reference :financial_transaction_types, :bank_account
end

View File

@ -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

Some files were not shown because too many files have changed in this diff Show More