Sha256: b3075bf3d1b7905b0c3888ab9f29cef18144d547da7c89bb8b3c08f17bb90684

Contents?: true

Size: 628 Bytes

Versions: 6

Compression:

Stored size: 628 Bytes

Contents

class CreatePosts < ActiveRecord::Migration
  def change
    create_table :posts do |t|
      t.text :title,
             :subtitle,
             :content,
             :in_reply_to,
             :categories,
             :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 null: false
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
homesteading_publisher-0.2.4 db/migrate/20150107224535_create_posts.rb
homesteading_publisher-0.2.3 db/migrate/20150107224535_create_posts.rb
homesteading_publisher-0.2.2 db/migrate/20150107224535_create_posts.rb
homesteading_publisher-0.2.1 db/migrate/20150107224535_create_posts.rb
homesteading_publisher-0.2.0 db/migrate/20150107224535_create_posts.rb
homesteading_publisher-0.1.3 db/migrate/20150107224535_create_posts.rb