Sha256: 9b677d0af95883754ef459a326a45b86a41b8d04290a37005ad6b77f52d41c5a

Contents?: true

Size: 193 Bytes

Versions: 2

Compression:

Stored size: 193 Bytes

Contents

class CreateDefaultDefs < ActiveRecord::Migration
  def self.up
    Def.find_or_create_by_d_and_e_and_f(:d => 2, :e => 'TestD', :f => 3)
  end

  def self.down
    Def.first.destroy!
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fidius-common-0.0.6 test/test_yamldb/migrations/20110421151500_create_default_defs.rb
fidius-common-0.0.5 test/test_yamldb/migrations/20110421151500_create_default_defs.rb