diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-11-05 11:03:02 +0100 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-11-05 11:03:02 +0100 |
commit | 1c4d1c3bd69a6f9ec43cce4ab59de4ba47f73229 (patch) | |
tree | d549337514c34ab2e92890d37ac12c22aca395c8 /db/migrate/20151105094515_create_releases.rb | |
parent | 33b8f002636ad6171637108b53732c74d90b14ad (diff) | |
download | gitlab-ce-1c4d1c3bd69a6f9ec43cce4ab59de4ba47f73229.tar.gz |
Add release model
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'db/migrate/20151105094515_create_releases.rb')
-rw-r--r-- | db/migrate/20151105094515_create_releases.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/db/migrate/20151105094515_create_releases.rb b/db/migrate/20151105094515_create_releases.rb new file mode 100644 index 00000000000..fe4608c6662 --- /dev/null +++ b/db/migrate/20151105094515_create_releases.rb @@ -0,0 +1,14 @@ +class CreateReleases < ActiveRecord::Migration + def change + create_table :releases do |t| + t.string :tag + t.text :description + t.integer :project_id + + t.timestamps + end + + add_index :releases, :project_id + add_index :releases, [:project_id, :tag] + end +end |