Sha256: 462154609e0170a63bcb6ffe2f07b4fe4a7dce82dd384f10c17737cf5eef6db2

Contents?: true

Size: 384 Bytes

Versions: 5

Compression:

Stored size: 384 Bytes

Contents

class CreateStringIds < ActiveRecord::Migration
  def self.up
    create_table "string_ids", :force => true, :id => false do |t|
      t.string :id, :null => false
    end
  end

  def self.down
    drop_table "string_ids"
  end
end

class StringId < ActiveRecord::Base
  def self.table_name; "string_ids"; end
  # Fake out a table without a primary key
  self.primary_key = "id"
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
activerecord-jdbc-adapter-1.2.9.1 test/models/string_id.rb
activerecord-jdbc-adapter-1.3.0.beta2 test/models/string_id.rb
activerecord-jdbc-adapter-1.3.0.beta1 test/models/string_id.rb
activerecord-jdbc-adapter-1.2.9 test/models/string_id.rb
activerecord-jdbc-adapter-1.2.8 test/models/string_id.rb