mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-02 10:37:59 +08:00
11 lines
281 B
Ruby
11 lines
281 B
Ruby
# frozen_string_literal: true
|
|
|
|
class CreateGithubRepos < ActiveRecord::Migration[5.2]
|
|
def change
|
|
create_table :github_repos do |t|
|
|
t.string :name, null: false, limit: 255
|
|
t.timestamps null: false
|
|
end
|
|
add_index :github_repos, :name, unique: true
|
|
end
|
|
end
|