Sha256: 4d1b4a1b8b919d44abf11c9c148372325dc066cdab2421ac653ffc3c613e8c23

Contents?: true

Size: 454 Bytes

Versions: 21

Compression:

Stored size: 454 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

21 entries across 21 versions & 1 rubygems

Version Path
napa-0.1.26 lib/napa/activerecord.rb
napa-0.1.25 lib/napa/activerecord.rb
napa-0.1.24 lib/napa/activerecord.rb
napa-0.1.23 lib/napa/activerecord.rb
napa-0.1.22 lib/napa/activerecord.rb
napa-0.1.21 lib/napa/activerecord.rb
napa-0.1.20 lib/napa/activerecord.rb
napa-0.1.19 lib/napa/activerecord.rb
napa-0.1.18 lib/napa/activerecord.rb
napa-0.1.17 lib/napa/activerecord.rb
napa-0.1.16 lib/napa/activerecord.rb
napa-0.1.15 lib/napa/activerecord.rb
napa-0.1.14 lib/napa/activerecord.rb
napa-0.1.12 lib/napa/activerecord.rb
napa-0.1.13 lib/napa/activerecord.rb
napa-0.1.11 lib/napa/activerecord.rb
napa-0.1.10 lib/napa/activerecord.rb
napa-0.1.7 lib/napa/activerecord.rb
napa-0.1.6 lib/napa/activerecord.rb
napa-0.1.4 lib/napa/activerecord.rb