Module: Gigantron
- Defined in:
- lib/gigantron/version.rb,
lib/gigantron/migrator.rb
Overview
simple function to handle migrating Gigantron databases
Defined Under Namespace
Modules: VERSION
Class Method Summary collapse
Class Method Details
.migrate_dbs ⇒ Object
4 5 6 7 8 9 |
# File 'lib/gigantron/migrator.rb', line 4 def self.migrate_dbs ActiveRecord::Migration.verbose = ENV["VERBOSE"] ? ENV["VERBOSE"] == "true" : true ActiveRecord::Migrator.migrate("#{GTRON_ROOT}/db/migrate/", ENV["VERSION"] ? ENV["VERSION"].to_i : nil) end |