Project

General

Profile

Download (356 Bytes) Statistics
| Branch: | Tag: | Revision:

foreman_docker / db / migrate / 20160605133025_create_docker_parameters.rb @ fb471374

1
class CreateDockerParameters < ActiveRecord::Migration[4.2]
2
  def change
3
    create_table :docker_parameters do |t|
4
      t.string :key, :limit => 255
5
      t.text  :value
6
      t.string :type, :limit => 255
7
      t.integer :reference_id
8
      t.timestamps
9
    end
10

    
11
    add_index :docker_parameters, [:type, :reference_id, :key], :unique => true
12
  end
13
end