Sha256: b842789d1bf2032b98b6543dd949cacce376f49f58db83068dad8b73b6c8c312

Contents?: true

Size: 604 Bytes

Versions: 3

Compression:

Stored size: 604 Bytes

Contents

class CreatePushTypeNodes < ActiveRecord::Migration
  def change
    enable_extension 'uuid-ossp' unless extension_enabled?('uuid-ossp')
    create_table :push_type_nodes, id: :uuid, default: 'uuid_generate_v4()' do |t|
      t.string    :type
      t.string    :title
      t.string    :slug
      t.json      :field_store

      t.uuid      :parent_id
      t.integer   :sort_order

      t.integer   :status
      t.datetime  :published_at
      t.datetime  :published_to

      t.uuid      :creator_id
      t.uuid      :updater_id

      t.timestamps
      t.datetime  :deleted_at
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
push_type_core-0.1.1 db/migrate/20141117204630_create_push_type_nodes.rb
push_type_core-0.1.0 db/migrate/20141117204630_create_push_type_nodes.rb
push_type_core-0.1.0.beta3 db/migrate/20141117204630_create_push_type_nodes.rb