Sha256: 60f6aaa3c6d9560fe951d4ca7b654e876827cc8f3dd09a831f020a7b29b11ef3

Contents?: true

Size: 519 Bytes

Versions: 29

Compression:

Stored size: 519 Bytes

Contents

# This migration comes from notee (originally 20160605141510)
class CreateNoteeCategories < ActiveRecord::Migration
  def change
    create_table :notee_categories do |t|

      t.string  :name, null: false, default: "category_name"
      t.string  :slug, null: false, default: "#{Time.now.strftime("%Y-%H-%M-%S")}", uniqueness: true
      t.integer :parent_id
      t.integer :status, null: false, default: 0

      t.timestamps null: false
    end

    add_index :notee_categories, [: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/20160713102621_create_notee_categories.notee.rb
notee-1.1.2.3 test/dummy/db/migrate/20160713102621_create_notee_categories.notee.rb
notee-1.1.2.2 test/dummy/db/migrate/20160713102621_create_notee_categories.notee.rb
notee-1.1.2.1 test/dummy/db/migrate/20160713102621_create_notee_categories.notee.rb
notee-1.1.2 test/dummy/db/migrate/20160713102621_create_notee_categories.notee.rb
notee-1.1.1 test/dummy/db/migrate/20160713102621_create_notee_categories.notee.rb
notee-1.1.0 test/dummy/db/migrate/20160713102621_create_notee_categories.notee.rb
notee-1.0.8 test/dummy/db/migrate/20160713102621_create_notee_categories.notee.rb
notee-1.0.7 test/dummy/db/migrate/20160713102621_create_notee_categories.notee.rb
notee-1.0.6 test/dummy/db/migrate/20160713102621_create_notee_categories.notee.rb
notee-1.0.5 test/dummy/db/migrate/20160713102621_create_notee_categories.notee.rb
notee-1.0.4 test/dummy/db/migrate/20160713102621_create_notee_categories.notee.rb
notee-1.0.3 test/dummy/db/migrate/20160713102621_create_notee_categories.notee.rb
notee-1.0.2 test/dummy/db/migrate/20160713102621_create_notee_categories.notee.rb
notee-1.0.1 test/dummy/db/migrate/20160713102621_create_notee_categories.notee.rb
notee-1.0.0 test/dummy/db/migrate/20160713102621_create_notee_categories.notee.rb
notee-0.4.0 test/dummy/db/migrate/20160713102621_create_notee_categories.notee.rb
notee-0.3.7 test/dummy/db/migrate/20160713102621_create_notee_categories.notee.rb
notee-0.3.6 test/dummy/db/migrate/20160713102621_create_notee_categories.notee.rb
notee-0.3.5 test/dummy/db/migrate/20160713102621_create_notee_categories.notee.rb