Skip to content

Commit 70e2ba5

Browse files
committed
add migrations to tag all existing basil comishs as v1 and new ones as v2
1 parent 5d88c47 commit 70e2ba5

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class AddBasilVersionToBasilCommissions < ActiveRecord::Migration[6.1]
2+
def change
3+
add_column :basil_commissions, :basil_version, :integer, default: 1
4+
end
5+
end
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class ChangeDefaultBasilVersionInBasilCommissions < ActiveRecord::Migration[6.1]
2+
def change
3+
change_column_default :basil_commissions, :basil_version, from: 1, to: 2
4+
end
5+
end

0 commit comments

Comments
 (0)