Class: AddReportTemplates

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
db/migrate/20100911122000_add_report_templates.rb

Class Method Summary collapse

Class Method Details

.downObject



13
14
15
# File 'db/migrate/20100911122000_add_report_templates.rb', line 13

def self.down
  drop_table :reports
end

.upObject



3
4
5
6
7
8
9
10
11
# File 'db/migrate/20100911122000_add_report_templates.rb', line 3

def self.up
  create_table :report_templates do |t|
    t.integer   :workspace_id, :null => false, :default => 1
    t.string    :created_by
    t.string    :path, :limit  => 1024
    t.text      :name
    t.timestamps
  end
end