Class: BigbluebuttonRails::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- BigbluebuttonRails::Generators::InstallGenerator
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/bigbluebutton_rails/install_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.next_migration_number(dirname) ⇒ Object
17 18 19 |
# File 'lib/generators/bigbluebutton_rails/install_generator.rb', line 17 def self.next_migration_number(dirname) ActiveRecord::Generators::Base.next_migration_number(dirname) end |
Instance Method Details
#copy_locale ⇒ Object
13 14 15 |
# File 'lib/generators/bigbluebutton_rails/install_generator.rb', line 13 def copy_locale copy_file "config/locales/en.yml", "config/locales/bigbluebutton_rails.en.yml" unless .migration_only? end |
#create_migration_file ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/generators/bigbluebutton_rails/install_generator.rb', line 21 def create_migration_file if migrate_to_version.blank? migration_template "#{migration_path}/migration.rb", "db/migrate/create_bigbluebutton_rails.rb" else migration_template "#{migration_path}/migration_#{version_filename}.rb", "db/migrate/bigbluebutton_rails_to_#{version_filename}.rb" end end |