summaryrefslogtreecommitdiffstats
path: root/extra/sample_plugin/db/migrate/001_create_meetings.rb
blob: 4b29c89da06cf810daad4fb627020e955b3b299f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: false

# 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