Class: AddReports
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- AddReports
- Defined in:
- db/migrate/011_add_reports.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
14 15 16 |
# File 'db/migrate/011_add_reports.rb', line 14 def self.down drop_table :reports end |
.up ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'db/migrate/011_add_reports.rb', line 3 def self.up create_table :reports do |t| t.integer :workspace_id, :null => false, :default => 1 t.string :created_by t.string :rtype t.string :path, :limit => 1024 t.text :options t. end end |