Sha256: 563f44e6f0ac6ba2fe68ea731724e69a013e550e7f9117aa4c558471dea87ece

Contents?: true

Size: 453 Bytes

Versions: 3

Compression:

Stored size: 453 Bytes

Contents

module Napa
  class ActiveRecord
    class << self
      def migration_template(migration_class)
        <<-MIGRATION
          class #{migration_class} < ActiveRecord::Migration
            def up
              # create_table :foo do |t|
              #   t.string :name, :null => false
              # end
            end

            def down
              # drop_table :foo
            end
          end
        MIGRATION
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
napa-0.1.2 lib/napa/activerecord.rb
napa-0.1.1 lib/napa/activerecord.rb
napa-0.1.0 lib/napa/activerecord.rb