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