diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-10 23:36:54 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-10 23:36:54 +0200 |
commit | 907c0e6796b69f9577c147dd489cf55748c749ac (patch) | |
tree | c4db6a3d3785fa845be98447eb4303b548ab7809 /db/migrate/20160610204158_add_environments.rb | |
parent | cf7da039bedcad5163ce9deedccc94206d4c485a (diff) | |
download | gitlab-ce-907c0e6796b69f9577c147dd489cf55748c749ac.tar.gz |
Added initial version of deployments
Diffstat (limited to 'db/migrate/20160610204158_add_environments.rb')
-rw-r--r-- | db/migrate/20160610204158_add_environments.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/db/migrate/20160610204158_add_environments.rb b/db/migrate/20160610204158_add_environments.rb new file mode 100644 index 00000000000..8311fd39b01 --- /dev/null +++ b/db/migrate/20160610204158_add_environments.rb @@ -0,0 +1,17 @@ +# See http://doc.gitlab.com/ce/development/migration_style_guide.html +# for more information on how to write migrations for GitLab. + +class AddEnvironments < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + def change + create_table :environments, force: true do |t| + t.integer :project_id + t.string :name, null: false + t.datetime :created_at + t.datetime :updated_at + end + + add_index :environments, [:project_id, :name] + end +end |