Sha256: 1d6e1989dc16ec0298470ac6e310df6762bf19e9a8cca112da359aa008563aaf

Contents?: true

Size: 249 Bytes

Versions: 44

Compression:

Stored size: 249 Bytes

Contents

class CreateLayouts < ActiveRecord::Migration
  def self.up
    create_table :layouts do |t|
      t.string :name
      t.text :body

      t.timestamps
    end

    add_index :layouts, :name
  end

  def self.down
    drop_table :layouts
  end
end

Version data entries

44 entries across 23 versions & 1 rubygems

Version Path
puffer_pages-0.5.1 db/migrate/20090506102004_create_layouts.rb
puffer_pages-0.5.0 db/migrate/20090506102004_create_layouts.rb
puffer_pages-0.1.1 spec/dummy/db/migrate/20090506102004_create_layouts.rb
puffer_pages-0.1.1 db/migrate/20090506102004_create_layouts.rb
puffer_pages-0.1.0 spec/dummy/db/migrate/20090506102004_create_layouts.rb
puffer_pages-0.1.0 db/migrate/20090506102004_create_layouts.rb
puffer_pages-0.0.19 db/migrate/20090506102004_create_layouts.rb
puffer_pages-0.0.19 spec/dummy/db/migrate/20090506102004_create_layouts.rb
puffer_pages-0.0.18 spec/dummy/db/migrate/20090506102004_create_layouts.rb
puffer_pages-0.0.18 db/migrate/20090506102004_create_layouts.rb
puffer_pages-0.0.17 spec/dummy/db/migrate/20090506102004_create_layouts.rb
puffer_pages-0.0.17 db/migrate/20090506102004_create_layouts.rb
puffer_pages-0.0.16 db/migrate/20090506102004_create_layouts.rb
puffer_pages-0.0.16 spec/dummy/db/migrate/20090506102004_create_layouts.rb
puffer_pages-0.0.15 spec/dummy/db/migrate/20090506102004_create_layouts.rb
puffer_pages-0.0.15 db/migrate/20090506102004_create_layouts.rb
puffer_pages-0.0.14 spec/dummy/db/migrate/20090506102004_create_layouts.rb
puffer_pages-0.0.14 lib/generators/puffer_pages/install/templates/migrate/20090506102004_create_layouts.rb
puffer_pages-0.0.13 spec/dummy/db/migrate/20090506102004_create_layouts.rb
puffer_pages-0.0.13 lib/generators/puffer_pages/install/templates/migrate/20090506102004_create_layouts.rb