Sha256: bc9fe6078151c1c7feaf4f101e801994b3613795c73be39c412c0840b33e17a5

Contents?: true

Size: 437 Bytes

Versions: 5

Compression:

Stored size: 437 Bytes

Contents

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, :scale => 2
    end
  end

  def self.down
    drop_table "entries"
  end
end

class Entry < ActiveRecord::Base
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
activerecord-jdbc-adapter-0.9.0.1 test/models/entry.rb
activerecord-jdbc-adapter-0.8.2 test/models/entry.rb
activerecord-jdbc-adapter-0.9 test/models/entry.rb
activerecord-jdbc-adapter-0.9.1 test/models/entry.rb
activerecord-jdbc-adapter-0.8.1 test/models/entry.rb