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