Sha256: 3e2afc010941d06d0dd94feadce3f4fed664309cd5de2b1f224db5c196b8e32f

Contents?: true

Size: 831 Bytes

Versions: 25

Compression:

Stored size: 831 Bytes

Contents

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_datetime, :datetime
      t.column :sample_date, :date
      t.column :sample_time, :time
      t.column :sample_decimal, :decimal, :precision => 15, :scale => 0
      t.column :sample_small_decimal, :decimal, :precision => 3, :scale => 2
      t.column :sample_float, :float
      t.column :sample_binary, :binary
      t.column :sample_boolean, :boolean
      t.column :sample_string, :string, :default => ''
      t.column :sample_integer, :integer, :limit => 5
      t.column :sample_text, :text
    end
  end

  def self.down
    drop_table "db_types"
  end
end

class DbType < ActiveRecord::Base
end

Version data entries

25 entries across 25 versions & 5 rubygems

Version Path
saturnflyer-activerecord-jdbc-adapter-0.9.3 test/models/data_types.rb
intentmedia-activerecord-jdbc-adapter-1.1.1.1 test/models/data_types.rb
activerecord-jdbc-adapter-1.1.1 test/models/data_types.rb
activerecord-jdbc-adapter-1.1.0 test/models/data_types.rb
activerecord-jdbc-adapter-1.0.3-java test/models/data_types.rb
activerecord-jdbc-adapter-1.0.2-java test/models/data_types.rb
activerecord-jdbc-adapter-1.0.1-java test/models/data_types.rb
activerecord-jdbc-adapter-1.0.0-java test/models/data_types.rb
activerecord-jdbc-adapter-1.0.0.beta2-java test/models/data_types.rb
kb-activerecord-jdbc-adapter-0.9.7.1-java test/models/data_types.rb
kb-activerecord-jdbc-adapter-1.0.0.beta1-java test/models/data_types.rb
activerecord-jdbc-adapter-1.0.0.beta1-java test/models/data_types.rb
activerecord-jdbc-adapter-0.9.7-java test/models/data_types.rb
activerecord-jdbc-adapter-0.9.6-java test/models/data_types.rb
activerecord-jdbc-adapter-0.9.5-java test/models/data_types.rb
activerecord-jdbc-adapter-0.9.4-java test/models/data_types.rb
activerecord-jdbc-adapter-0.9.3-java test/models/data_types.rb
jpzwarte-activerecord-jdbc-adapter-0.9.2.6 test/models/data_types.rb
jpzwarte-activerecord-jdbc-adapter-0.9.2.5 test/models/data_types.rb
jpzwarte-activerecord-jdbc-adapter-0.9.2.4 test/models/data_types.rb