Use ActiveRecordStarter.UpdateSchema()
This call detect changes is schema and create not exists columns, tables etc

2011/10/24 Alex <[email protected]>:
> Hello, I am just learning ActiveRecord because I want to use it in a
> new project. I am playing with the BlogSample project.
> Currently I want to test the schema update features. When I add a
> complete new class (model) then the new table gets created fine when I
> call ActiveRecordStarter.CreateSchema();
>
> Then I tried to add a new property to the user model. I added a new
> property called Email, but CreateSchema returns with the following
> Error: "In the database a object with the name "User" already exists".
> This is not the exact wording of the error message. I get the error in
> German language and have translated it to English.
>
> Any ideas?
>
> Thank,
> Alex
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Castle Project Users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/castle-project-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en.

Reply via email to