File: 001_create_meetings.rb

package info (click to toggle)
redmine 6.0.6%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 20,100 kB
  • sloc: ruby: 116,319; javascript: 12,885; sh: 460; perl: 303; python: 166; makefile: 30
file content (15 lines) | stat: -rw-r--r-- 381 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Sample plugin migration
# Use rake db:migrate_plugins to migrate installed plugins
class CreateMeetings < ActiveRecord::Migration[4.2]
  def self.up
    create_table :meetings do |t|
      t.column :project_id, :integer, :null => false
      t.column :description, :string
      t.column :scheduled_on, :datetime
    end
  end

  def self.down
    drop_table :meetings
  end
end