Class: MigracionGeneral
- Inherits:
-
Object
- Object
- MigracionGeneral
- Defined in:
- lib/forcast/migrations/0_migracion_general.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.general_tables ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/forcast/migrations/0_migracion_general.rb', line 12 def self.general_tables @tables = [] $files.each do |file| require file table = "#{file.split("/").last.gsub('.rb','').titleize.delete(' ')}" next if table == 'Base' @tables.push(eval("Tables::#{table}")) end return @tables end |
.tables ⇒ Object
8 9 10 |
# File 'lib/forcast/migrations/0_migracion_general.rb', line 8 def self.tables general_tables end |
Instance Method Details
#down ⇒ Object
27 28 29 |
# File 'lib/forcast/migrations/0_migracion_general.rb', line 27 def down raise ActiveRecord::IrreversibleMigration, 'Error' end |
#up ⇒ Object
23 24 25 |
# File 'lib/forcast/migrations/0_migracion_general.rb', line 23 def up run_migrations end |