19 lines
327 B
Ruby
Executable File
19 lines
327 B
Ruby
Executable File
class AddReportTemplates < ActiveRecord::Migration
|
|
|
|
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
|
|
|
|
def self.down
|
|
drop_table :reports
|
|
end
|
|
|
|
end
|
|
|