[Ovirt-devel] [PATCH server] Added roles and privileges for the cloud controller.

Jason Guiditta jguiditt at redhat.com
Tue Apr 14 20:48:25 UTC 2009


One minor fix, inline.

On Thu, 2009-04-02 at 19:35 +0000, Scott Seago wrote:
> Signed-off-by: Scott Seago <sseago at redhat.com>
> diff --git a/src/app/models/privilege.rb b/src/db/migrate/038_add_cloud_role.rb
> similarity index 50%
> copy from src/app/models/privilege.rb
> copy to src/db/migrate/038_add_cloud_role.rb
> index 7a30b8f..2487f0c 100644
> --- a/src/app/models/privilege.rb
> +++ b/src/db/migrate/038_add_cloud_role.rb
> @@ -17,19 +17,30 @@
>  # MA  02110-1301, USA.  A copy of the GNU General Public License is
>  # also available at http://www.gnu.org/copyleft/gpl.html.
>  
> -class Privilege < ActiveRecord::Base
> -  has_and_belongs_to_many :roles
The class name and filename difference caused this to fail for me, so
they just need to be fixed as we discussed in irc, then ACK.

> +class AddCloudRoles < ActiveRecord::Migration
> +  def self.up
> +    Role.transaction do
> +      role_cloud_user = Role.new({:name => "Cloud User"})
> +




More information about the ovirt-devel mailing list