Module: WordSmith::Migrations
- Extended by:
- T::Sig
- Defined in:
- lib/migrations/index.rb,
lib/migrations/1_words.rb
Defined Under Namespace
Classes: Words
Class Method Summary collapse
Class Method Details
.run ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/migrations/index.rb', line 12 def run Dir.glob(File.join(__dir__, './*.rb')).each do |file| # rubocop:disable Lint/NonDeterministicRequireOrder next if file == __FILE__ require_relative file end WordSmith::Migrations.constants.each do |constant| WordSmith::Migrations.const_get(constant).up end end |