Sha256: bdca544716262bdb1210e0e0191b642b2f0e6a7741f67019456740232aaa23a9

Contents?: true

Size: 984 Bytes

Versions: 31

Compression:

Stored size: 984 Bytes

Contents

class CreateHubstatsPullRequests < ActiveRecord::Migration
  def change
    create_table :hubstats_pull_requests do |t|
      t.integer :number
      t.belongs_to :user
      t.belongs_to :repo
      t.datetime :created_at
      t.datetime :updated_at
      t.datetime :closed_at
      t.integer :additions
      t.integer :deletions
      t.integer :comments
      t.integer :commits
      t.integer :changed_files

      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.string :state
      t.string :title
      t.string :body
      t.string :merged_at
      t.string :merge_commit_sha
      t.string :merged
      t.string :mergeable
    end

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

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
hubstats-1.2.1 db/migrate/20140604130339_create_hubstats_pull_requests.rb
hubstats-1.2.0 db/migrate/20140604130339_create_hubstats_pull_requests.rb
hubstats-1.1.0 db/migrate/20140604130339_create_hubstats_pull_requests.rb
hubstats-1.0.0 db/migrate/20140604130339_create_hubstats_pull_requests.rb
hubstats-1.0.0.beta3 db/migrate/20140604130339_create_hubstats_pull_requests.rb
hubstats-1.0.0.beta2 db/migrate/20140604130339_create_hubstats_pull_requests.rb
hubstats-1.0.0.beta1 db/migrate/20140604130339_create_hubstats_pull_requests.rb
hubstats-1.0.0.beta db/migrate/20140604130339_create_hubstats_pull_requests.rb
hubstats-0.12.2 db/migrate/20140604130339_create_hubstats_pull_requests.rb
hubstats-0.12.1 db/migrate/20140604130339_create_hubstats_pull_requests.rb
hubstats-0.12.0 db/migrate/20140604130339_create_hubstats_pull_requests.rb
hubstats-0.11.5 db/migrate/20140604130339_create_hubstats_pull_requests.rb
hubstats-0.11.4 db/migrate/20140604130339_create_hubstats_pull_requests.rb
hubstats-0.11.1 db/migrate/20140604130339_create_hubstats_pull_requests.rb
hubstats-0.11.0 db/migrate/20140604130339_create_hubstats_pull_requests.rb
hubstats-0.10.0 db/migrate/20140604130339_create_hubstats_pull_requests.rb
hubstats-0.9.5 db/migrate/20140604130339_create_hubstats_pull_requests.rb
hubstats-0.9.4 db/migrate/20140604130339_create_hubstats_pull_requests.rb
hubstats-0.9.3 db/migrate/20140604130339_create_hubstats_pull_requests.rb
hubstats-0.9.2 db/migrate/20140604130339_create_hubstats_pull_requests.rb