view lib/generators/redmine_plugin_model/templates/migration.rb.erb @ 460:9bdb8e3b9135 feature_36

Publication index action in Project context correctly links to show view (within project context).
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Thu, 16 Jun 2011 13:45:19 +0100
parents 513646585e45
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