Sha256: 605bedface68d340cc52bef47570c6561bc1c7c6d73bcfe0123a654ab40115b6

Contents?: true

Size: 1.17 KB

Versions: 56

Compression:

Stored size: 1.17 KB

Contents

class CreateHubstatsRepos < ActiveRecord::Migration
  def change
    create_table :hubstats_repos do |t|
      t.integer :id
      t.belongs_to :owner
      t.string :name
      t.string :full_name
      t.datetime :pushed_at
      t.datetime :created_at
      t.datetime :updated_at

      t.string :homepage
      t.string :language
      t.integer :forks_count
      t.integer :stargazers_count
      t.integer :watches_count
      t.integer :size 
      t.integer :open_issues_count
      t.boolean :has_issues
      t.boolean :has_wiki
      t.boolean :has_downloads
      t.boolean :private
      t.boolean :fork
      t.string :description
      t.string :default_branch
      t.string :url
      t.string :html_url
      t.string :clone_url
      t.string :git_url
      t.string :ssh_url
      t.string :svn_url
      t.string :mirror_url
      t.string :hooks_url
      t.string :issue_events_url
      t.string :events_url
      t.string :contributors_url
      t.string :git_commits_url
      t.string :issue_comment_url
      t.string :merges_url
      t.string :issues_url
      t.string :pulls_url
      t.string :labels_url
    end

     add_index :hubstats_repos, :owner_id
  end
end

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
hubstats-0.6.0 db/migrate/20140604130550_create_hubstats_repos.rb
hubstats-0.5.12 db/migrate/20140604130550_create_hubstats_repos.rb
hubstats-0.5.11 db/migrate/20140604130550_create_hubstats_repos.rb
hubstats-0.5.10 db/migrate/20140604130550_create_hubstats_repos.rb
hubstats-0.5.9 db/migrate/20140604130550_create_hubstats_repos.rb
hubstats-0.5.7 db/migrate/20140604130550_create_hubstats_repos.rb
hubstats-0.5.6 db/migrate/20140604130550_create_hubstats_repos.rb
hubstats-0.5.5 db/migrate/20140604130550_create_hubstats_repos.rb
hubstats-0.5.4 db/migrate/20140604130550_create_hubstats_repos.rb
hubstats-0.5.3 db/migrate/20140604130550_create_hubstats_repos.rb
hubstats-0.5.2 db/migrate/20140604130550_create_hubstats_repos.rb
hubstats-0.5.1 db/migrate/20140604130550_create_hubstats_repos.rb
hubstats-0.5.0 db/migrate/20140604130550_create_hubstats_repos.rb
hubstats-0.4.4 db/migrate/20140604130550_create_hubstats_repos.rb
hubstats-0.4.2 db/migrate/20140604130550_create_hubstats_repos.rb
hubstats-0.4.1 db/migrate/20140604130550_create_hubstats_repos.rb
hubstats-0.3.17 db/migrate/20140604130550_create_hubstats_repos.rb
hubstats-0.3.16 db/migrate/20140604130550_create_hubstats_repos.rb
hubstats-0.3.15 db/migrate/20140604130550_create_hubstats_repos.rb
hubstats-0.3.14 db/migrate/20140604130550_create_hubstats_repos.rb