Module: DynamicMigrations::ActiveRecord::Migrators::ClassMethods
- Defined in:
- lib/dynamic_migrations/active_record/migrators.rb
Instance Method Summary collapse
- #clear_schema_name ⇒ Object
-
#schema_name ⇒ Object
The schema name should be set on the migration class before the migration is run.
- #set_schema_name(schema_name) ⇒ Object
Instance Method Details
#clear_schema_name ⇒ Object
50 51 52 |
# File 'lib/dynamic_migrations/active_record/migrators.rb', line 50 def clear_schema_name @current_schema = nil end |
#schema_name ⇒ Object
The schema name should be set on the migration class before the migration is run
42 43 44 |
# File 'lib/dynamic_migrations/active_record/migrators.rb', line 42 def schema_name @current_schema end |
#set_schema_name(schema_name) ⇒ Object
46 47 48 |
# File 'lib/dynamic_migrations/active_record/migrators.rb', line 46 def set_schema_name schema_name @current_schema = schema_name.to_sym end |