Sha256: 75a6b6e35bb3d5b5aac810034f8e01ff05dbc2805355080c30e0e88380cb6731

Contents?: true

Size: 451 Bytes

Versions: 1

Compression:

Stored size: 451 Bytes

Contents

class CreatePosts < ActiveRecord::Migration
  def change
    create_table :posts do |t|
      t.string   "title"
      t.string "preview_image"
      t.text "body"
      t.integer "user_id"
      t.text "users_ids_who_favorite_it", :default => "[]"
      t.text "users_ids_who_comment_it", :default => "[]"
      t.text "users_ids_who_reblog_it", :default => "[]"
      t.text "communities_ids", :default => "[]"

      t.timestamps
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
inkwell_timelines-1.0.0 test/dummy/db/migrate/20130422111954_create_posts.rb