Sha256: 2ea2591012a42e5f5744e41f29862d19b578fdbd976facf5f3a2b1b9347b6524

Contents?: true

Size: 199 Bytes

Versions: 2

Compression:

Stored size: 199 Bytes

Contents

class CreateDefaultAbcs < ActiveRecord::Migration
  def self.up
    Abc.find_or_create_by_a_and_b_and_c(:a => 'TestA', :b => 1, :c => "TestC")
  end

  def self.down
    Abc.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/20110421151300_create_default_abcs.rb
fidius-common-0.0.5 test/test_yamldb/migrations/20110421151300_create_default_abcs.rb