def self.down
drop_created_tables
end
def self.drop_created_tables
File.read(__FILE__).scan(/create_table :(\w+)/).each { |table| drop_table table }
end
|
def self.down
drop_created_tables
end
def self.drop_created_tables
File.read(__FILE__).scan(/create_table :(\w+)/).each { |table| drop_table table }
end
|