Displaying 1 result from an estimated 1 matches for "activerevcord".
Did you mean:
activerecord
2009 Jul 21
1
synatx error while running migration
...root
password: root123
host: localhost
#database of the engine
PMS:
adapter: mysql
database: pms
username: root
password: root123
host: localhost
i have also define the necessary code inside my all engine models and
migration files
like this
code of
project.rb
class Project < ActiveRevcord::Base
self.establish_connection :pms
end
/db/migrate/20090715172542_create_projects.rb
class CreateProjects < ActiveRecord::Migration
def self.connection
Project.connection
end
def self.up
create_table :projects do |t|
t.string :name...