Sha256: ad1ce05ef1278d3a60b8a2befda0a60ed29226ab192c78d6b56cc03a40cebe48

Contents?: true

Size: 554 Bytes

Versions: 13

Compression:

Stored size: 554 Bytes

Contents

class CreateValidatesUniquenessOf < ActiveRecord::Migration
  def self.up
    create_table "validates_uniqueness_of", :force => true do |t|
      t.column :cs_string, :string
      t.column :ci_string, :string
      t.column :content, :text
    end
  end

  def self.down
    drop_table "validates_uniqueness_of"
  end
end

class ValidatesUniquenessOfString < ActiveRecord::Base
  self.table_name = "validates_uniqueness_of"
  validates_uniqueness_of :cs_string, :case_sensitive => true
  validates_uniqueness_of :ci_string, :case_sensitive => false
end

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
activerecord-jdbc-adapter-1.2.9.1 test/models/validates_uniqueness_of_string.rb
activerecord-jdbc-adapter-1.3.0.beta2 test/models/validates_uniqueness_of_string.rb
activerecord-jdbc-adapter-1.3.0.beta1 test/models/validates_uniqueness_of_string.rb
activerecord-jdbc-adapter-1.2.9 test/models/validates_uniqueness_of_string.rb
activerecord-jdbc-adapter-1.2.8 test/models/validates_uniqueness_of_string.rb
activerecord-jdbc-adapter-1.2.5 test/models/validates_uniqueness_of_string.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.5 test/models/validates_uniqueness_of_string.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.4 test/models/validates_uniqueness_of_string.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.3 test/models/validates_uniqueness_of_string.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.2 test/models/validates_uniqueness_of_string.rb
activerecord-jdbc-adapter-1.2.2.1 test/models/validates_uniqueness_of_string.rb
activerecord-jdbc-adapter-onsite-1.2.2 test/models/validates_uniqueness_of_string.rb
activerecord-jdbc-adapter-1.2.2 test/models/validates_uniqueness_of_string.rb