Sha256: e345ec0d38c7557767615d99ad4f0ce8ea9f0b63b141050604390033595e24c0

Contents?: true

Size: 241 Bytes

Versions: 2

Compression:

Stored size: 241 Bytes

Contents

class CreateFoos < ActiveRecord::Migration
  def self.up
    create_table :foos do |t|
      t.string :title
    end

    %w(Foo Bar).each do |t|
      Foo.new(:title => t).save
    end
  end

  def self.down
    drop_table :foos
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gigantron-0.1.1 test/template_migration.rb
gigantron-0.1.3 test/template_migration.rb