trustieforge/db/migrate/20140324015819_create_open_...

16 lines
624 B
Ruby

class CreateOpenSourceProjects < ActiveRecord::Migration
def change
create_table :open_source_projects do |t|
t.column "name", :string, :default => nil, :null => true
t.column "description", :string, :default => '', :null => true
t.column "commit_count", :integer, :default => 0
t.column "code_line", :integer, :default => 0
t.column "users_count",:integer, :default => 0
t.column "last_commit_time", :date, :null => true
t.column "url", :string, :default => nil, :null => true
t.column "date_collected", :date, :null => true
t.timestamps
end
end
end