Specify minimal possible rails release for migrations

This commit is contained in:
1resu 2021-12-18 23:52:05 +01:00
parent 7c7d780719
commit f5efc9af77
13 changed files with 13 additions and 13 deletions

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 CreateArticles < ActiveRecord::Migration
class CreateArticles < ActiveRecord::Migration[4.2]
def self.up
create_table :articles do |t|
t.column :name, :string, :null => false

View file

@ -1,4 +1,4 @@
class AddListToArticle < ActiveRecord::Migration
class AddListToArticle < ActiveRecord::Migration[4.2]
def self.up
add_column :articles, :list, :string
add_column :suppliers, :lists, :string

View file

@ -1,4 +1,4 @@
class NewWording < ActiveRecord::Migration
class NewWording < ActiveRecord::Migration[4.2]
def self.up
rename_column :articles, :refund, :deposit
# and make 0.0 deposit the default ...

View file

@ -1,4 +1,4 @@
class AddBnnSyncToSuppliers < ActiveRecord::Migration
class AddBnnSyncToSuppliers < ActiveRecord::Migration[4.2]
def self.up
add_column :suppliers, :bnn_sync, :boolean, :default => false
add_column :suppliers, :bnn_host, :string

View file

@ -1,4 +1,4 @@
class CreateUsers < ActiveRecord::Migration
class CreateUsers < ActiveRecord::Migration[4.2]
def self.up
create_table :users do |t|
t.string :email

View file

@ -1,4 +1,4 @@
class CreateUserAccesses < ActiveRecord::Migration
class CreateUserAccesses < ActiveRecord::Migration[4.2]
def self.up
create_table :user_accesses do |t|
t.integer :user_id

View file

@ -1,4 +1,4 @@
class RemoveArticleListsFromSuppliers < ActiveRecord::Migration
class RemoveArticleListsFromSuppliers < ActiveRecord::Migration[4.2]
def self.up
remove_column :suppliers, :lists
remove_column :articles, :list

View file

@ -1,4 +1,4 @@
class AddAdminFlagToUsers < ActiveRecord::Migration
class AddAdminFlagToUsers < ActiveRecord::Migration[4.2]
def self.up
add_column :users, :admin, :boolean, :default => false
end

View file

@ -1,4 +1,4 @@
class AddCategoryToArticle < ActiveRecord::Migration
class AddCategoryToArticle < ActiveRecord::Migration[4.2]
def self.up
add_column :articles, :category, :string
end

View file

@ -1,4 +1,4 @@
class AddMailSyncToSupplier < ActiveRecord::Migration
class AddMailSyncToSupplier < ActiveRecord::Migration[4.2]
def change
add_column :suppliers, :mail_sync, :boolean
add_column :suppliers, :mail_from, :string

View file

@ -1,4 +1,4 @@
class AddSaltToSuppliers < ActiveRecord::Migration
class AddSaltToSuppliers < ActiveRecord::Migration[4.2]
class Supplier < ActiveRecord::Base; end

View file

@ -1,4 +1,4 @@
class GeneralizeFtpSyncBeyondBnn < ActiveRecord::Migration
class GeneralizeFtpSyncBeyondBnn < ActiveRecord::Migration[4.2]
def change
rename_column :suppliers, :bnn_sync, :ftp_sync
rename_column :suppliers, :bnn_host, :ftp_host