Sha256: f23ac70bacd6a3e5e21ed25d3897b2ef7f71a579bac87eaf9c83b0ac65039c1c

Contents?: true

Size: 328 Bytes

Versions: 7

Compression:

Stored size: 328 Bytes

Contents

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

      t.timestamps null: false
    end

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

Version data entries

7 entries across 4 versions & 1 rubygems

Version Path
economy-4.0.2.0 test/dummy/db/migrate/20161115135521_create_exchanges.rb
economy-4.0.1.0 test/dummy/db/migrate/20161115135521_create_exchanges.rb
economy-4.0.1.0 lib/generators/economy/install/templates/migration.rb
economy-4.0.0.0 test/dummy/db/migrate/20161115135521_create_exchanges.rb
economy-4.0.0.0 lib/generators/economy/install/templates/migration.rb
economy-0.0.1 lib/generators/economy/templates/migration.rb
economy-0.0.1 test/dummy/db/migrate/20161115135521_create_exchanges.rb