diff options
Diffstat (limited to 'projects/devdashboard/db/migrate/002_create_projects.rb')
-rw-r--r-- | projects/devdashboard/db/migrate/002_create_projects.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/projects/devdashboard/db/migrate/002_create_projects.rb b/projects/devdashboard/db/migrate/002_create_projects.rb new file mode 100644 index 0000000..febc09a --- /dev/null +++ b/projects/devdashboard/db/migrate/002_create_projects.rb @@ -0,0 +1,14 @@ +class CreateProjects < ActiveRecord::Migration + def self.up + create_table :projects do |t| + t.column :name, :string + t.column :longname, :string + t.column :last_updated, :date + t.column :description, :text + end + end + + def self.down + drop_table :projects + end +end |