Skip to content

Commit

Permalink
Add a repo model
Browse files Browse the repository at this point in the history
  • Loading branch information
agnoster committed Sep 11, 2012
1 parent e38bbbf commit 9a7584e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/models/repo.rb
@@ -0,0 +1,3 @@
class Repo < ActiveRecord::Base
attr_accessible :full_name, :name, :user_id
end
11 changes: 11 additions & 0 deletions db/migrate/20120911125344_create_repos.rb
@@ -0,0 +1,11 @@
class CreateRepos < ActiveRecord::Migration
def change
create_table :repos do |t|
t.integer :user_id
t.string :full_name
t.string :name

t.timestamps
end
end
end

0 comments on commit 9a7584e

Please sign in to comment.