2
3
4
5
6
7
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
# File 'lib/generators/deluxe_publisher/migration/templates/migration.rb', line 2
def self.up
create_table "deluxe_publisher_comments", :force => true do |t|
t.integer "page_id"
t.string "author"
t.text "body", :limit => 255
t.string "status"
t.datetime "posted_at"
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "deluxe_publisher_content_descriptors", :force => true do |t|
t.integer "page_type_id"
t.integer "position"
t.string "title"
t.string "content_type", :default => "text"
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "deluxe_publisher_contents", :force => true do |t|
t.integer "page_id"
t.text "html"
t.integer "position"
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "deluxe_publisher_page_types", :force => true do |t|
t.integer "site_id", :default => 1
t.string "name"
t.text "description"
t.boolean "is_published", :default => true
t.integer "position", :default => 0
t.string "function_as", :default => "web_page"
t.integer "number_of_content_areas", :default => 1
t.string "template"
t.string "layout"
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "deluxe_publisher_pages", :force => true do |t|
t.integer "site_id", :default => 1
t.integer "parent_id"
t.integer "lft"
t.integer "rgt"
t.integer "alias_page_id"
t.integer "page_type_id"
t.integer "position", :default => 0
t.integer "footer_position", :default => 0
t.string "browser_title"
t.string "page_title"
t.string "menu_title"
t.string "file_name"
t.string "path"
t.boolean "is_shown_in_main_navigation", :default => false
t.boolean "is_shown_in_secondary_navigation", :default => false
t.string "target_window"
t.string "external_url"
t.boolean "is_published", :default => false
t.boolean "is_landing_page", :default => false
t.datetime "publish_at"
t.boolean "is_navigation_locked", :default => false
t.boolean "is_content_locked", :default => false
t.text "meta_keywords"
t.text "meta_description"
t.boolean "is_included_in_sitemap", :default => true
t.float "sitemap_priority", :default => 0.5
t.string "sitemap_change_freq", :default => "monthly"
t.datetime "created_at"
t.datetime "updated_at"
t.boolean "allow_comments", :default => false
end
create_table :deluxe_publisher_redirects do |t|
t.string :incoming_url
t.string :direct_to_url
t.text :description
t.timestamps
end
end
|