del migrating no need commission

This commit is contained in:
Yan
2017-11-07 11:03:19 +06:30
parent 17afb039cb
commit 0ad958d8a8
3 changed files with 3 additions and 21 deletions

View File

@@ -1,15 +0,0 @@
class CreateCommissions < ActiveRecord::Migration[5.1]
# rake db:migrate:down VERSION=20170825093252
def change
create_table :commissions, id: false do |t|
t.string :commission_id, limit: 16, primary_key: true # custom primary key
t.string :name
t.string :product_type
t.json :product_code
t.string :commission_type
t.integer :amount
t.boolean :is_active, default: true
t.timestamps
end
end
end