gitlab-org--gitlab-foss/db/migrate/20180223120443_create_user_interacted_projects_table.rb
2018-03-06 12:53:14 +01:00

18 lines
386 B
Ruby

class CreateUserInteractedProjectsTable < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
create_table :user_interacted_projects, id: false do |t|
t.references :user, null: false
t.references :project, null: false
end
end
def down
drop_table :user_interacted_projects
end
end