Skip to content

Commit 0658fc7

Browse files
author
Marko Bogdanović
authored
Merge pull request #248 from bmarkons/add-temporary-rake-task
Add temporary rake task
2 parents afe83ba + 6cddee2 commit 0658fc7

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

lib/tasks/temporary/ruby-pg.rake

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
namespace :repos do
2+
desc 'Create ruby-pg repo within ged organization'
3+
task create_ruby_pg: :environment do
4+
ActiveRecord::Base.transaction do
5+
organization = Organization.create(name: 'ged', url: 'https://github.com/ged/')
6+
repo = Repo.create(name: 'ruby-pg', url: 'https://github.com/ged/ruby-pg', organization_id: organization.id)
7+
end
8+
9+
puts ' All done now!'
10+
end
11+
end

0 commit comments

Comments
 (0)