move to AR
This commit is contained in:
parent
c4b7b2d9f2
commit
26c046cdfa
51 changed files with 2345 additions and 516 deletions
|
@ -12,7 +12,7 @@ config = ActiveRecord::Base.configurations
|
|||
ENV['RAILS_ENV'] = target
|
||||
load APP_ROOT + 'config/environment.rb'
|
||||
puts "Creating tables for #{target}..."
|
||||
|
||||
|
||||
db_structure(config[target]['adapter']).split(/\s*;\s*/).each do |sql|
|
||||
ActiveRecord::Base.connection.execute(sql)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue