Sha256: 8e7584a7a0475b0835e65e76ff7b8eab753f1df6f9cefff69cfb0d31fad8605f

Contents?: true

Size: 815 Bytes

Versions: 29

Compression:

Stored size: 815 Bytes

Contents

# This migration comes from notee (originally 20160605141437)
# 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, default: "no title"
      t.text    :content
      t.string  :slug, default: "#{Time.now.strftime("%Y-%H-%M-%S")}"
      t.integer :status, default: 0
      t.integer :category_id, default: 0
      t.integer :thumbnail_id, default: 0
      t.datetime :published_at, default: Time.now

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


      # if you have user_id
      # t.integer :user_id

      t.timestamps null: false

    end

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

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
notee-1.1.2.4 test/dummy/db/migrate/20160713102620_create_notee_posts.notee.rb
notee-1.1.2.3 test/dummy/db/migrate/20160713102620_create_notee_posts.notee.rb
notee-1.1.2.2 test/dummy/db/migrate/20160713102620_create_notee_posts.notee.rb
notee-1.1.2.1 test/dummy/db/migrate/20160713102620_create_notee_posts.notee.rb
notee-1.1.2 test/dummy/db/migrate/20160713102620_create_notee_posts.notee.rb
notee-1.1.1 test/dummy/db/migrate/20160713102620_create_notee_posts.notee.rb
notee-1.1.0 test/dummy/db/migrate/20160713102620_create_notee_posts.notee.rb
notee-1.0.8 test/dummy/db/migrate/20160713102620_create_notee_posts.notee.rb
notee-1.0.7 test/dummy/db/migrate/20160713102620_create_notee_posts.notee.rb
notee-1.0.6 test/dummy/db/migrate/20160713102620_create_notee_posts.notee.rb
notee-1.0.5 test/dummy/db/migrate/20160713102620_create_notee_posts.notee.rb
notee-1.0.4 test/dummy/db/migrate/20160713102620_create_notee_posts.notee.rb
notee-1.0.3 test/dummy/db/migrate/20160713102620_create_notee_posts.notee.rb
notee-1.0.2 test/dummy/db/migrate/20160713102620_create_notee_posts.notee.rb
notee-1.0.1 test/dummy/db/migrate/20160713102620_create_notee_posts.notee.rb
notee-1.0.0 test/dummy/db/migrate/20160713102620_create_notee_posts.notee.rb
notee-0.4.0 test/dummy/db/migrate/20160713102620_create_notee_posts.notee.rb
notee-0.3.7 test/dummy/db/migrate/20160713102620_create_notee_posts.notee.rb
notee-0.3.6 test/dummy/db/migrate/20160713102620_create_notee_posts.notee.rb
notee-0.3.5 test/dummy/db/migrate/20160713102620_create_notee_posts.notee.rb