Initial commit
This commit is contained in:
19
db/migrate/20180708014826_create_blockchains.rb
Normal file
19
db/migrate/20180708014826_create_blockchains.rb
Normal file
@@ -0,0 +1,19 @@
|
||||
class CreateBlockchains < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
create_table :blockchains do |t|
|
||||
t.string :key, null: false, index: { unique: true }
|
||||
t.string :name
|
||||
t.string :client, null: false
|
||||
t.string :server
|
||||
t.integer :height, null: false
|
||||
t.string :explorer_address
|
||||
t.string :explorer_transaction
|
||||
t.integer :min_confirmations, null: false, default: 6
|
||||
t.string :status, null: false, index: true
|
||||
|
||||
t.timestamps null: false
|
||||
end
|
||||
|
||||
add_column :currencies, :blockchain_key, :string, limit: 32, after: :id
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user