Sha256: a2a4c8adf387840a19a663d036df21ebba84324ff84704dc95b9461459e438ef

Contents?: true

Size: 265 Bytes

Versions: 14

Compression:

Stored size: 265 Bytes

Contents

class CreatePosts < ActiveRecord::Migration
  def self.up
    create_table :posts do |t|
      t.integer :comment_id
      t.text :body
      t.string :name
      t.integer :user_id

      t.timestamps
    end
  end

  def self.down
    drop_table :posts
  end
end

Version data entries

14 entries across 7 versions & 1 rubygems

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