mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-02 09:31:40 +08:00
15 lines
461 B
Ruby
15 lines
461 B
Ruby
# frozen_string_literal: true
|
|
|
|
class CreateGithubCommits < ActiveRecord::Migration[5.2]
|
|
def change
|
|
create_table :github_commits do |t|
|
|
t.references :repo, null: false
|
|
t.string :sha, limit: 40, null: false
|
|
t.string :email, limit: 513, null: false
|
|
t.timestamp :committed_at, null: false
|
|
t.integer :role_id, null: false
|
|
t.boolean :merge_commit, null: false, default: false
|
|
t.timestamps null: false
|
|
end
|
|
end
|
|
end
|