Initial commit
This commit is contained in:
11
db/migrate/20180517110003_improve_deposit_model.rb
Normal file
11
db/migrate/20180517110003_improve_deposit_model.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
# encoding: UTF-8
|
||||
# frozen_string_literal: true
|
||||
|
||||
class ImproveDepositModel < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
change_column :deposits, :aasm_state, :string, limit: 30, null: false
|
||||
add_index :deposits, %i[member_id txid]
|
||||
add_index :deposits, %i[aasm_state member_id currency_id]
|
||||
add_index :deposits, :tid
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user