Welcome to mirror list, hosted at ThFree Co, Russian Federation.

2_create_some_table_on_another_db.rb « migrations_over_multiple_databases « migrations « click_house « fixtures « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b8cd86a67f58ab953b3b7ebe6a896ed845e68518 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

# rubocop: disable Gitlab/NamespacedClass -- Fixtures do not need to be namespaced
class CreateSomeTableOnAnotherDb < ClickHouse::Migration
  SCHEMA = :another_db

  def up
    execute <<~SQL
      CREATE TABLE some_on_another_db (
        id   UInt64,
        date Date
      ) ENGINE = Memory
    SQL
  end
end
# rubocop: enable Gitlab/NamespacedClass