Sha256: 7f1915772ff411959fa11d4446a0bc84a9279a1c1c4a4280d20966a79f8e4a9d

Contents?: true

Size: 635 Bytes

Versions: 5

Compression:

Stored size: 635 Bytes

Contents

class CreateCurrencies < ActiveRecord::Migration
  def self.up
    create_table :currencies do |t|
      t.integer   :account_id,            :null=>false
      t.string    :currency_name,         :limit=>255, :null=>false
      t.string    :currency_symbol,       :limit=>255, :null=>false
      t.string    :currency_separator,    :limit=>255, :null=>false, :default=>"."
      t.string    :currency_delimiter,    :limit=>255, :null=>false, :default=>","
      t.float     :currency_rate
      t.timestamps
    end
    add_index :currencies, :currency_name, :unique => true
  end

  def self.down
    drop_table :currencies
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
smukherjee-openbill-0.1.5 db/migrate/20090519083539_create_currencies.rb
smukherjee-openbill-0.1.6 db/migrate/20090519083539_create_currencies.rb
smukherjee-openbill-0.1.7 db/migrate/20090519083539_create_currencies.rb
openbill-0.1.5 db/migrate/20090519083539_create_currencies.rb
openbill-0.1.6 db/migrate/20090519083539_create_currencies.rb