comparison extra/sample_plugin/db/migrate/.svn/text-base/001_create_meetings.rb.svn-base @ 0:513646585e45

* Import Redmine trunk SVN rev 3859
author Chris Cannam
date Fri, 23 Jul 2010 15:52:44 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:513646585e45
1 # Sample plugin migration
2 # Use rake db:migrate_plugins to migrate installed plugins
3 class CreateMeetings < ActiveRecord::Migration
4 def self.up
5 create_table :meetings do |t|
6 t.column :project_id, :integer, :null => false
7 t.column :description, :string
8 t.column :scheduled_on, :datetime
9 end
10 end
11
12 def self.down
13 drop_table :meetings
14 end
15 end