Initial commit
This commit is contained in:
13
db/migrate/20200622185615_add_refunds.rb
Normal file
13
db/migrate/20200622185615_add_refunds.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
class AddRefunds < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :refunds do |t|
|
||||
t.references :deposit, null: false
|
||||
t.string :state, limit: 30, null: false
|
||||
t.string :address, null: false
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :refunds, :state
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user