Sha256: ca998613e3d2203ddbe16cf1c1c69125db80941560f2bf2736d8f048b3905991
Contents?: true
Size: 365 Bytes
Versions: 5
Compression:
Stored size: 365 Bytes
Contents
class AddReports < ActiveRecord::Migration def up unless table_exists? :reports create_table :reports do |t| t.string :name t.string :internal_identifier t.text :template t.text :query t.timestamps end end end def down if table.exists? :reports drop_table :reports end end end
Version data entries
5 entries across 5 versions & 1 rubygems