gitlab-org--gitlab-foss/db/migrate/20180223120443_create_user_interacted_projects_table.rb

19 lines
386 B
Ruby
Raw Normal View History

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