1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

Added plugins to make code work with sequel >= 3.0

git-svn-id: http://svn.opennebula.org/one/trunk@714 3034c82b-c49b-4eb3-8279-a7acafdc01c0
This commit is contained in:
Javier Fontán Muiños 2009-07-21 16:02:32 +00:00
parent af21c88a3f
commit 3f4a3355aa
2 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,9 @@
module OpenNebula
class Image < Sequel::Model
plugin :schema
plugin :hook_class_methods
# Creates the database table asociated with the model. It first
# checks for table existence before creating it so it is reasonably
# safe to call it when you load the library.
@ -138,6 +141,8 @@ module OpenNebula
end
class ImageAcl < Sequel::Model
plugin :schema
def self.initialize_table
set_schema do
primary_key :id, :type => Integer

View File

@ -3,7 +3,7 @@ require 'rubygems'
#require 'storage_pool'
require 'uuid'
require 'fileutils'
gem 'sequel', '< 3.0'
#gem 'sequel', '< 3.0'
require 'sequel'
require 'logger'