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