Sha256: 13ac206e9524bc5a1e6dccf8849071513875a7a9274fb0a75c2995eafb868bc3

Contents?: true

Size: 1016 Bytes

Versions: 8

Compression:

Stored size: 1016 Bytes

Contents

class CreateHubstatsPullRequests < ActiveRecord::Migration
  def change
    create_table :hubstats_pull_requests do |t|
      t.integer :id
      t.string :url
      t.string :html_url
      t.string :diff_url
      t.string :patch_url
      t.string :issue_url
      t.string :commits_url
      t.string :review_comments_url
      t.string :review_comment_url
      t.string :comments_url
      t.string :statuses_url
      t.integer :number
      t.string :state
      t.string :title
      t.string :body
      t.string :created_at
      t.string :updated_at
      t.string :closed_at
      t.string :merged_at
      t.string :merge_commit_sha
      t.string :merged
      t.string :mergeable
      t.integer :comments
      t.integer :commits
      t.integer :additions
      t.integer :deletions
      t.integer :changed_files
      t.belongs_to :user
      t.belongs_to :repo
      t.timestamps
    end

    add_index :hubstats_pull_requests, :user_id
    add_index :hubstats_pull_requests, :repo_id
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
hubstats-0.0.8 db/migrate/20140604130339_create_hubstats_pull_requests.rb
hubstats-0.0.7 db/migrate/20140604130339_create_hubstats_pull_requests.rb
hubstats-0.0.6 db/migrate/20140604130339_create_hubstats_pull_requests.rb
hubstats-0.0.5 db/migrate/20140604130339_create_hubstats_pull_requests.rb
hubstats-0.0.4 db/migrate/20140604130339_create_hubstats_pull_requests.rb
hubstats-0.0.3 db/migrate/20140604130339_create_hubstats_pull_requests.rb
hubstats-0.0.2 db/migrate/20140604130339_create_hubstats_pull_requests.rb
hubstats-0.0.1 db/migrate/20140604130339_create_hubstats_pull_requests.rb