Mercurial > hg > soundsoftware-site
view .svn/pristine/5b/5ba4b3bae1ac655e0a9cb68df6a092b2c3782db0.svn-base @ 1258:f8c5708a6fd6 redmine-2.2-integration
Fixed the tag+text queries using scopes.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Wed, 10 Apr 2013 16:53:44 +0100 |
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