Sha256: 94a4daf3bec1ed7c2c20b32c110f1d7c42561589460fdab3944620af4e617f1e

Contents?: true

Size: 495 Bytes

Versions: 3

Compression:

Stored size: 495 Bytes

Contents

class CreatePosts < ActiveRecord::Migration
  def change
    create_table :posts do |t|
      t.text :title,
      :subtitle,
      :content,
      :in_reply_to,
      :tags,
      :syndication,
      :slug,
      :location_name,
      :location_latitude,
      :location_longitude,
      :location_altitude

      t.string :year,
      :month,
      :day,
      :hour,
      :minute,
      :second

      t.boolean  :private
      t.datetime :published_at

      t.timestamps
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
homesteading_publisher-0.1.2 db/migrate/20150107224535_create_posts.rb
homesteading_publisher-0.1.1 db/migrate/20150107224535_create_posts.rb
homesteading_publisher-0.1.0 db/migrate/20150107224535_create_posts.rb