Sha256: 72a7da532122626ed4ae494041639c94f07126ef272b9b99eede62a017c712b7
Contents?: true
Size: 801 Bytes
Versions: 1
Compression:
Stored size: 801 Bytes
Contents
class CreateComfyCarousel < ActiveRecord::Migration def self.up create_table :carousel_carousels do |t| t.string :label, :null => false t.string :identifier, :null => false t.timestamps end add_index :carousel_carousels, :identifier create_table :carousel_slides do |t| t.integer :carousel_id, :null => false t.string :label, :null => false t.text :content t.string :url t.string :file_file_name t.string :file_content_type t.integer :file_file_size t.integer :position, :null => false, :default => 0 t.timestamps end add_index :carousel_slides, [:carousel_id, :position] end def self.down drop_table :carousel_carousels drop_table :carousel_slides end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
comfy_carousel-0.0.1 | db/migrate/01_create_comfy_carousel.rb |