Specify minimal possible rails release for migrations
This commit is contained in:
parent
7c7d780719
commit
f5efc9af77
13 changed files with 13 additions and 13 deletions
|
@ -1,4 +1,4 @@
|
||||||
class CreateSuppliers < ActiveRecord::Migration
|
class CreateSuppliers < ActiveRecord::Migration[4.2]
|
||||||
SUPPLIER_SAMPLE = 'Sample Supplier'
|
SUPPLIER_SAMPLE = 'Sample Supplier'
|
||||||
|
|
||||||
def self.up
|
def self.up
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
class CreateArticles < ActiveRecord::Migration
|
class CreateArticles < ActiveRecord::Migration[4.2]
|
||||||
def self.up
|
def self.up
|
||||||
create_table :articles do |t|
|
create_table :articles do |t|
|
||||||
t.column :name, :string, :null => false
|
t.column :name, :string, :null => false
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
class AddListToArticle < ActiveRecord::Migration
|
class AddListToArticle < ActiveRecord::Migration[4.2]
|
||||||
def self.up
|
def self.up
|
||||||
add_column :articles, :list, :string
|
add_column :articles, :list, :string
|
||||||
add_column :suppliers, :lists, :string
|
add_column :suppliers, :lists, :string
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
class NewWording < ActiveRecord::Migration
|
class NewWording < ActiveRecord::Migration[4.2]
|
||||||
def self.up
|
def self.up
|
||||||
rename_column :articles, :refund, :deposit
|
rename_column :articles, :refund, :deposit
|
||||||
# and make 0.0 deposit the default ...
|
# and make 0.0 deposit the default ...
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
class AddBnnSyncToSuppliers < ActiveRecord::Migration
|
class AddBnnSyncToSuppliers < ActiveRecord::Migration[4.2]
|
||||||
def self.up
|
def self.up
|
||||||
add_column :suppliers, :bnn_sync, :boolean, :default => false
|
add_column :suppliers, :bnn_sync, :boolean, :default => false
|
||||||
add_column :suppliers, :bnn_host, :string
|
add_column :suppliers, :bnn_host, :string
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
class CreateUsers < ActiveRecord::Migration
|
class CreateUsers < ActiveRecord::Migration[4.2]
|
||||||
def self.up
|
def self.up
|
||||||
create_table :users do |t|
|
create_table :users do |t|
|
||||||
t.string :email
|
t.string :email
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
class CreateUserAccesses < ActiveRecord::Migration
|
class CreateUserAccesses < ActiveRecord::Migration[4.2]
|
||||||
def self.up
|
def self.up
|
||||||
create_table :user_accesses do |t|
|
create_table :user_accesses do |t|
|
||||||
t.integer :user_id
|
t.integer :user_id
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
class RemoveArticleListsFromSuppliers < ActiveRecord::Migration
|
class RemoveArticleListsFromSuppliers < ActiveRecord::Migration[4.2]
|
||||||
def self.up
|
def self.up
|
||||||
remove_column :suppliers, :lists
|
remove_column :suppliers, :lists
|
||||||
remove_column :articles, :list
|
remove_column :articles, :list
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
class AddAdminFlagToUsers < ActiveRecord::Migration
|
class AddAdminFlagToUsers < ActiveRecord::Migration[4.2]
|
||||||
def self.up
|
def self.up
|
||||||
add_column :users, :admin, :boolean, :default => false
|
add_column :users, :admin, :boolean, :default => false
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
class AddCategoryToArticle < ActiveRecord::Migration
|
class AddCategoryToArticle < ActiveRecord::Migration[4.2]
|
||||||
def self.up
|
def self.up
|
||||||
add_column :articles, :category, :string
|
add_column :articles, :category, :string
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
class AddMailSyncToSupplier < ActiveRecord::Migration
|
class AddMailSyncToSupplier < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
add_column :suppliers, :mail_sync, :boolean
|
add_column :suppliers, :mail_sync, :boolean
|
||||||
add_column :suppliers, :mail_from, :string
|
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
|
class Supplier < ActiveRecord::Base; end
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
class GeneralizeFtpSyncBeyondBnn < ActiveRecord::Migration
|
class GeneralizeFtpSyncBeyondBnn < ActiveRecord::Migration[4.2]
|
||||||
def change
|
def change
|
||||||
rename_column :suppliers, :bnn_sync, :ftp_sync
|
rename_column :suppliers, :bnn_sync, :ftp_sync
|
||||||
rename_column :suppliers, :bnn_host, :ftp_host
|
rename_column :suppliers, :bnn_host, :ftp_host
|
||||||
|
|
Loading…
Reference in a new issue