8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# File 'lib/evil/setup/migration.rb', line 8
def create_evil_tables
create_table :evil_templates do |t|
t.integer :ttl, :position
t.string :title, :route, :content_type, :encoding
t.text :source
t.timestamps
end unless Evil::Models::Template.table_exists?
unless Evil::Models::ConfigPair.table_exists?
create_table :evil_config_pairs do |t|
t.string :plugin
t.string :key
t.text :value
t.timestamps
end
add_index :evil_config_pairs, :plugin
end
create_table :evil_whitelists do |t|
t.string :pattern
end unless Evil::Models::Whitelist.table_exists?
unless ArOpenidStore::Association.table_exists?
create_openid_tables
end
end
|