Sha256: 9c99b0689ff13f2524d51e43efe133b05aa4e612348f3f1c8ce72d57f354a95d

Contents?: true

Size: 627 Bytes

Versions: 26

Compression:

Stored size: 627 Bytes

Contents

class CreateWritefullyPosts < ActiveRecord::Migration
  def change
    create_table :writefully_posts do |t|
      t.string     :title
      t.string     :slug
      t.string     :type
      t.text       :content
      t.hstore     :details
      t.datetime   :published_at
      t.integer    :position
      t.string     :locale, default: 'en'
      t.integer    :translation_source_id
      t.references :site,       index: true
      t.references :authorship, index: true

      t.timestamps
    end
    
    add_index :writefully_posts, :slug, unique: true
    add_index :writefully_posts, :translation_source_id
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
writefully-0.4.5 db/migrate/20140402091204_create_writefully_posts.rb
writefully-0.4.4 db/migrate/20140402091204_create_writefully_posts.rb
writefully-0.4.2 db/migrate/20140402091204_create_writefully_posts.rb
writefully-0.4.1 db/migrate/20140402091204_create_writefully_posts.rb
writefully-0.4.0 db/migrate/20140402091204_create_writefully_posts.rb
writefully-0.3.6 db/migrate/20140402091204_create_writefully_posts.rb