view .svn/pristine/5b/5ba4b3bae1ac655e0a9cb68df6a092b2c3782db0.svn-base @ 1555:1786830cc35d feature_1136

Run update-server-info after each export
author Chris Cannam
date Wed, 13 Jan 2016 12:49:37 +0000
parents cbb26bc654de
children
line wrap: on
line source
class <%= migration_name %> < ActiveRecord::Migration
  def self.up
    create_table :<%= table_name %> do |t|
<% for attribute in attributes -%>
      t.column :<%= attribute.name %>, :<%= attribute.type %>
<% end -%>
    end
  end

  def self.down
    drop_table :<%= table_name %>
  end
end