Sha256: 8918e7d0843ca98c1ae838ff7c02842135670749d96cad6194462b95723e3b90

Contents?: true

Size: 616 Bytes

Versions: 6

Compression:

Stored size: 616 Bytes

Contents

class CreateTransactions < ActiveRecord::Migration[7.0]
  def change
    create_table :transactions do |t|
      t.string :sender_key, null: false
      t.string :receiver_key, null: false
      t.time :signature_time
      t.integer :status, null: false, default: 0
      t.text :data
      t.string :upl_file
      t.string :upl_file_name
      t.string :upl_file_type
      t.string :upl_file_size
      t.string :upl_file_hash
      t.decimal :amount, null: false, default: 0.0, precision: 16, scale: 2
      t.float :fee, null: false, default: 0.0, precision: 16, scale: 2

      t.timestamps
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
osbc-0.2.0 db/migrate/20221022221059_create_transactions.rb
osbc-0.1.9 db/migrate/20221022221059_create_transactions.rb
osbc-0.1.8 db/migrate/20221022221059_create_transactions.rb
osbc-0.1.7 db/migrate/20221022221059_create_transactions.rb
osbc-0.1.6 db/migrate/20221022221059_create_transactions.rb
osbc-0.1.5 db/migrate/20221022221059_create_transactions.rb