Sha256: 98bb79f307b2ed308263fee76b9c0a398741132c5cd99c63ff07b7a4b6d9e182
Contents?: true
Size: 390 Bytes
Versions: 1
Compression:
Stored size: 390 Bytes
Contents
class CreateThings < ActiveRecord::Migration def self.up create_table :things, :id => false do |t| t.string :name t.timestamps end add_index :things, :name, :unique => true add_index :things, :created_at, :where => 'name IS NOT NULL', :name => "thing_partial_index" end def self.down drop_table :things end end class Thing < ActiveRecord::Base end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activerecord-jdbc-adapter-1.3.0.beta2 | test/models/thing.rb |