Sha256: dfa2c424b4e6b372ef851663226051a8e10a0b0e74eae065e59977de00b87ac7

Contents?: true

Size: 576 Bytes

Versions: 1

Compression:

Stored size: 576 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,
      :wordpress_url,
      :tumblr_url,
      :medium_url,
      :facebook_url

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

      t.boolean  :private
      t.datetime :published_at

      t.timestamps
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
homesteading_publisher-0.0.11 db/migrate/20150107224535_create_posts.rb