BigW Consortium Gitlab

20151103134958_create_lfs_objects_projects.rb 342 Bytes
Newer Older
1
# rubocop:disable all
2
class CreateLfsObjectsProjects < ActiveRecord::Migration
3 4
  DOWNTIME = false

5 6 7 8 9
  def change
    create_table :lfs_objects_projects do |t|
      t.integer :lfs_object_id, null: false
      t.integer :project_id, null: false

10
      t.timestamps null: true
11 12 13 14 15
    end

    add_index :lfs_objects_projects, :project_id
  end
end