Specify minimal possible rails release for migrations

new_user
1resu 12 months ago
parent 7c7d780719
commit f5efc9af77
  1. 2
      db/migrate/001_create_suppliers.rb
  2. 2
      db/migrate/002_create_articles.rb
  3. 2
      db/migrate/003_add_list_to_article.rb
  4. 2
      db/migrate/004_new_wording.rb
  5. 2
      db/migrate/20110306172553_add_bnn_sync_to_suppliers.rb
  6. 2
      db/migrate/20120312184452_create_users.rb
  7. 2
      db/migrate/20120312190323_create_user_accesses.rb
  8. 2
      db/migrate/20121013164501_remove_article_lists_from_suppliers.rb
  9. 2
      db/migrate/20121017084147_add_admin_flag_to_users.rb
  10. 2
      db/migrate/20130627093146_add_category_to_article.rb
  11. 2
      db/migrate/20170901183454_add_mail_sync_to_supplier.rb
  12. 2
      db/migrate/20170901200146_add_salt_to_suppliers.rb
  13. 2
      db/migrate/20190811115732_generalize_ftp_sync_beyond_bnn.rb

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

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

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

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save