Sha256: fa76d8bd9806327789f447b69a1139191d5e7b9924de3e3c263dbf564b439e26

Contents?: true

Size: 244 Bytes

Versions: 14

Compression:

Stored size: 244 Bytes

Contents

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

  def self.down
    drop_table :blogs
  end
end

Version data entries

14 entries across 7 versions & 1 rubygems

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