Sha256: 2c9c78a1dfd0ce5957696ea045a5de8db9325b22f0e01a40e1d6707298d69f96

Contents?: true

Size: 297 Bytes

Versions: 6

Compression:

Stored size: 297 Bytes

Contents

class CreateExchanges < ActiveRecord::Migration
  def change
    create_table :exchanges do |t|
      t.string :service
      t.string :from
      t.string :to
      t.decimal :rate, precision: 24, scale: 12

      t.timestamps null: false
    end

    add_index :exchanges, %i(from to)
  end
end

Version data entries

6 entries across 4 versions & 1 rubygems

Version Path
economy-5.1.0 lib/generators/economy/install/templates/create_exchanges.rb
economy-4.0.2.2 lib/generators/economy/install/templates/migration.rb
economy-4.0.2.2 test/dummy/db/migrate/20161115135521_create_exchanges.rb
economy-4.0.2.1 lib/generators/economy/install/templates/migration.rb
economy-4.0.2.1 test/dummy/db/migrate/20161115135521_create_exchanges.rb
economy-4.0.2.0 lib/generators/economy/install/templates/migration.rb