Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20141204133321_create_service.rb « migrate « ci « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d87115c0577b6eb6b961fc7115eec4eb524ce095 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class CreateService < ActiveRecord::Migration
  def change
    create_table :services, force: true do |t|
      t.string   :type
      t.string   :title
      t.integer  :project_id,                 null: false
      t.datetime :created_at
      t.datetime :updated_at
      t.boolean  :active,     default: false, null: false
      t.text     :properties
    end

    add_index :services, [:project_id], name: :index_services_on_project_id, using: :btree
  end
end