Sha256: e3dcb8819f310cce47cf8d036ef397beb55071bc4218dafa0a2952d1fb4c543a

Contents?: true

Size: 419 Bytes

Versions: 1

Compression:

Stored size: 419 Bytes

Contents

require 'jdbc_adapter'
require 'rubygems'
require 'active_record'

class DbTypeMigration < ActiveRecord::Migration
  def self.up
    create_table "db_types", :force => true do |t|
      t.column :sample_timestamp, :timestamp
      t.column :sample_decimal, :decimal, :precision=> 15, :scale => 0
    end
  end

  def self.down
    drop_table "db_types"
  end
end

class DbType < ActiveRecord::Base
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ActiveRecord-JDBC-0.2.3 test/models/data_types.rb