Sha256: cdaaa1452c53668fd4be3cc6de170edb9db776b3a28c6f28a4eb105b69cb0a64

Contents?: true

Size: 758 Bytes

Versions: 8

Compression:

Stored size: 758 Bytes

Contents

# This migration comes from notee (originally 20160605141437)
class CreateNoteePosts < ActiveRecord::Migration
  def change
    create_table :notee_posts do |t|

      # notee's base
      t.string  :title
      t.text    :content
      t.string  :slug
      t.integer :status, default: 0
      t.integer :category_id, default: 0
      t.integer :thumbnail_id, default: 0
      t.datetime :published_at
      t.integer :user_id
      t.boolean :is_deleted, null: false, default: false

      # seo
      t.string  :seo_keyword, default: ""
      t.string  :seo_description, default: ""

      # secret_published
      t.string :secret_published_password


      t.timestamps null: false

    end

    add_index :notee_posts, :slug, :unique => true
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
notee-1.0.7 db/migrate/20160605141437_create_notee_posts.rb
notee-1.0.6 db/migrate/20160605141437_create_notee_posts.rb
notee-1.0.5 db/migrate/20160605141437_create_notee_posts.rb
notee-1.0.4 db/migrate/20160605141437_create_notee_posts.rb
notee-1.0.3 db/migrate/20160605141437_create_notee_posts.rb
notee-1.0.2 db/migrate/20160605141437_create_notee_posts.rb
notee-1.0.1 db/migrate/20160605141437_create_notee_posts.rb
notee-1.0.0 db/migrate/20160605141437_create_notee_posts.rb