Sha256: 8873ba05da72830b8c315743f1eb1d8c7204f07fad20b750ec4167943adb9080

Contents?: true

Size: 265 Bytes

Versions: 14

Compression:

Stored size: 265 Bytes

Contents

class CreatePages < ActiveRecord::Migration
  def self.up
    create_table :pages do |t|
      t.string :title
      t.text :body
      t.integer :user_id
      t.string :menu 
      
      t.timestamps
    end
  end

  def self.down
    drop_table :pages
  end
end

Version data entries

14 entries across 7 versions & 1 rubygems

Version Path
squeezer-0.2.1 lib/generators/squeezer/templates/db/migrate/pages.rb
squeezer-0.2.1 lib/generators/squeezer/templates/db/migrate/create_pages.rb
squeezer-0.2.0 lib/generators/squeezer/templates/db/migrate/pages.rb
squeezer-0.2.0 lib/generators/squeezer/templates/db/migrate/create_pages.rb
squeezer-0.1.11 lib/generators/squeezer/templates/db/migrate/create_pages.rb
squeezer-0.1.11 lib/generators/squeezer/templates/db/migrate/pages.rb
squeezer-0.1.7 lib/generators/squeezer/templates/db/migrate/create_pages.rb
squeezer-0.1.7 lib/generators/squeezer/templates/db/migrate/pages.rb
squeezer-0.1.6 lib/generators/squeezer/templates/db/migrate/create_pages.rb
squeezer-0.1.6 lib/generators/squeezer/templates/db/migrate/pages.rb
squeezer-0.1.5 lib/generators/squeezer/templates/db/migrate/pages.rb
squeezer-0.1.5 lib/generators/squeezer/templates/db/migrate/create_pages.rb
squeezer-0.1.4 lib/generators/squeezer/templates/db/migrate/pages.rb
squeezer-0.1.4 lib/generators/squeezer/templates/db/migrate/create_pages.rb