db/migrate/01_create_cms.rb in comfypress-0.1.3 vs db/migrate/01_create_cms.rb in comfypress-0.1.4

- old
+ new

@@ -16,10 +16,11 @@ t.string :hostname, :null => false t.string :path t.string :locale, :null => false, :default => 'en' t.boolean :is_mirrored, :null => false, :default => false t.integer :menu_id + t.integer :logo_id end add_index :cms_sites, :hostname add_index :cms_sites, :is_mirrored # -- Layouts ------------------------------------------------------------ @@ -137,17 +138,37 @@ t.integer :menu_id t.string :label t.integer :page_id t.string :link t.string :menu_item_type + t.integer :position, :null => false, :default => 0 t.timestamps end + # -- Tabs -------------------------------------------------------------- + create_table :cms_tabs do |t| + t.integer :site_id + t.integer :page_id + t.string :label + t.integer :position, :null => false, :default => 0 + t.boolean :is_active, :null => false, :default => false + t.text :content, text_limit + end - end - + + # -- Carousel --------------------------------------------------------- + create_table :cms_slides do |t| + t.integer :site_id, :null => false + t.string :file_file_name, :null => false + t.string :file_content_type, :null => false + t.integer :file_file_size, :null => false + t.integer :position, :null => false, :default => 0 + t.timestamps + end + end + def self.down drop_table :cms_sites drop_table :cms_layouts drop_table :cms_pages drop_table :cms_snippets @@ -156,8 +177,10 @@ drop_table :cms_revisions drop_table :cms_categories drop_table :cms_categorizations drop_table :cms_menus drop_table :cms_menu_items + drop_table :cms_slides + drop_table :cms_tabs end end