Sha256: e847aa55dcfdff3c9663ee171fa92b4984efc6df9e72dc404d3ca19709d3bf4c

Contents?: true

Size: 447 Bytes

Versions: 1

Compression:

Stored size: 447 Bytes

Contents

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

class CreateEntries < ActiveRecord::Migration
  def self.up
    create_table "entries", :force => true do |t|
      t.column :title, :string, :limit => 100
      t.column :updated_on, :datetime
      t.column :content, :text
      t.column :rating, :decimal, :precision => 10
    end
  end

  def self.down
    drop_table "entries"
  end
end

class Entry < ActiveRecord::Base
end

Version data entries

1 entries across 1 versions & 1 rubygems

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