Skip to content

Commit

Permalink
Make sure the migration works and installs
Browse files Browse the repository at this point in the history
  • Loading branch information
julik committed Oct 30, 2023
1 parent acc86c8 commit 6366779
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/raclette/install_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module Raclette
class InstallGenerator < Rails::Generators::Base
include ActiveRecord::Generators::Migration

TEMPLATES = File.join(File.dirname(__FILE__), "templates/install")
TEMPLATES = File.join(File.dirname(__FILE__))
source_paths << TEMPLATES

class_option :database, type: :string, aliases: %i(--db), desc: "The database for your migration. By default, the current environment's primary database is used."
Expand Down
2 changes: 1 addition & 1 deletion lib/raclette/migrations/create_raclette_tables.rb.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddLeakyBucketsTable < ActiveRecord::Migration<%= migration_version %>
class CreateRacletteTables < ActiveRecord::Migration<%= migration_version %>
def change
create_table :raclette_leaky_buckets, id: :uuid do |t|
t.string :key, null: false
Expand Down
2 changes: 1 addition & 1 deletion lib/raclette/railtie.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module Raclette
class Railtie < Rails::Railtie
generators do
require "path/to/my_railtie_generator"
require_relative "install_generator"
end
end
end

0 comments on commit 6366779

Please sign in to comment.