vmail 1.8.8 → 1.8.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/vmail/database.rb +15 -14
- data/lib/vmail/version.rb +1 -1
- metadata +1 -1
data/lib/vmail/database.rb
CHANGED
@@ -11,19 +11,20 @@ if DB[:version].count == 0
|
|
11
11
|
DB[:version].insert(:vmail_version => Vmail::VERSION)
|
12
12
|
end
|
13
13
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
14
|
+
module Vmail
|
15
|
+
class Message < Sequel::Model(:messages)
|
16
|
+
set_primary_key :message_id
|
17
|
+
one_to_many :labelings
|
18
|
+
many_to_many :labels, :join_table => 'labelings'
|
19
|
+
end
|
20
|
+
|
21
|
+
class Label < Sequel::Model(:labels)
|
22
|
+
set_primary_key :label_id
|
23
|
+
one_to_many :labelings
|
24
|
+
many_to_many :messages, :join_table => 'labelings'
|
25
|
+
end
|
26
|
+
|
27
|
+
class Labeling < Sequel::Model(:labelings)
|
28
|
+
end
|
18
29
|
end
|
19
30
|
|
20
|
-
class Vmail::Label < Sequel::Model(:labels)
|
21
|
-
set_primary_key :label_id
|
22
|
-
one_to_many :labelings
|
23
|
-
many_to_many :messages, :join_table => 'labelings'
|
24
|
-
end
|
25
|
-
|
26
|
-
class Vmail::Labeling < Sequel::Model(:labelings)
|
27
|
-
end
|
28
|
-
|
29
|
-
|
data/lib/vmail/version.rb
CHANGED