Sha256: 1c46a97571ebbfd3cc2484376137f62a46d62632eb6fc4b186057eeb175caf55
Contents?: true
Size: 711 Bytes
Versions: 8
Compression:
Stored size: 711 Bytes
Contents
class CreateSlides < ActiveRecord::Migration def self.up create_table :slides do |t| t.string :title t.string :strapline t.string :link t.integer :position, :default => 0 t.datetime :published_at t.datetime :published_to t.string :filename, :default => 'no_file' t.string :content_type t.integer :size, :height, :width t.references :parent, :slide_show t.string :thumbnail t.integer :lock_level, :default => 0 t.timestamps end create_table :slide_shows do |t| t.string :title, :permalink t.timestamps end end def self.down drop_table :slides drop_table :slide_shows end end
Version data entries
8 entries across 8 versions & 1 rubygems