Sha256: 6dcfae051e7f20ff062a827e625869ae6c5c173fbc32f3fc12a153c36684f1eb

Contents?: true

Size: 452 Bytes

Versions: 10

Compression:

Stored size: 452 Bytes

Contents

class CreatePosts < ActiveRecord::Migration
  def self.up
    create_table :posts do |t|
      t.column "created_at", :datetime
      t.column "updated_at", :datetime
      t.column "raw_post", :text
      t.column "post", :text
      t.column "title", :string
      t.column "category_id", :integer
      t.column "user_id", :integer
      t.column "view_count", :integer, :default => 0
    end
  end

  def self.down
    drop_table :posts
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
community_engine-3.2.0 db/migrate/012_create_posts.rb
community_engine-3.0.0 db/migrate/012_create_posts.rb
community_engine-2.3.2 db/migrate/012_create_posts.rb
community_engine-2.3.1 db/migrate/012_create_posts.rb
community_engine-2.3.0 db/migrate/012_create_posts.rb
community_engine-2.1.0 db/migrate/012_create_posts.rb
community_engine-2.0.0 db/migrate/012_create_posts.rb
community_engine-2.0.0.beta3 db/migrate/012_create_posts.rb
community_engine-2.0.0.beta2 db/migrate/012_create_posts.rb
community_engine-2.0.0.beta1 db/migrate/012_create_posts.rb