diff options
author | James Lopez <james@jameslopez.es> | 2016-02-22 16:37:03 +0100 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-02-22 16:37:03 +0100 |
commit | f96abe4b12da8c25d790f347afd58f1dbd4ac960 (patch) | |
tree | 9e13a7c3217d7596e8dc99abdb1473a1b60c38c5 /db/migrate/20160212123307_create_tasks.rb | |
parent | c3fe7388caa1bd49f25434b8109c4a1ab42d5b27 (diff) | |
parent | 5803a5308f5a7a84cc84dd0a7d8a89565bae0717 (diff) | |
download | gitlab-ce-f96abe4b12da8c25d790f347afd58f1dbd4ac960.tar.gz |
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into feature/slack-notifications-on-ci
# Conflicts:
# .gitlab-ci.yml
Diffstat (limited to 'db/migrate/20160212123307_create_tasks.rb')
-rw-r--r-- | db/migrate/20160212123307_create_tasks.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/db/migrate/20160212123307_create_tasks.rb b/db/migrate/20160212123307_create_tasks.rb new file mode 100644 index 00000000000..c3f6f3abc26 --- /dev/null +++ b/db/migrate/20160212123307_create_tasks.rb @@ -0,0 +1,14 @@ +class CreateTasks < ActiveRecord::Migration + def change + create_table :tasks do |t| + t.references :user, null: false, index: true + t.references :project, null: false, index: true + t.references :target, polymorphic: true, null: false, index: true + t.integer :author_id, index: true + t.integer :action, null: false + t.string :state, null: false, index: true + + t.timestamps + end + end +end |