Branding
This commit is contained in:
+2
-2
@@ -1,7 +1,7 @@
|
||||
require 'rails/generators'
|
||||
require 'rails/generators/migration'
|
||||
|
||||
class RakeControlGenerator < Rails::Generators::Base
|
||||
class BurdenGenerator < Rails::Generators::Base
|
||||
include Rails::Generators::Migration
|
||||
|
||||
def self.source_root
|
||||
@@ -17,6 +17,6 @@ class RakeControlGenerator < Rails::Generators::Base
|
||||
end
|
||||
|
||||
def create_migration_file
|
||||
migration_template 'create_rake_control_runs.rb', 'db/migrate/create_rake_control_runs.rb'
|
||||
migration_template 'create_burden_runs.rb', 'db/migrate/create_burden_runs.rb'
|
||||
end
|
||||
end
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
class CreateRakeControlRuns < ActiveRecord::Migration
|
||||
class CreateBurdenRuns < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :rake_control_runs do |t|
|
||||
create_table :burden_runs do |t|
|
||||
t.string :name
|
||||
t.boolean :success
|
||||
t.float :execution_time
|
||||
@@ -9,6 +9,6 @@ class CreateRakeControlRuns < ActiveRecord::Migration
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table :rake_control_runs
|
||||
drop_table :burden_runs
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user