Sha256: 364dcf26be336e31973fd790c63c7b39ba0c2f73fe065cdb199fb7b28bd2e430

Contents?: true

Size: 670 Bytes

Versions: 9

Compression:

Stored size: 670 Bytes

Contents

# This migration comes from push_type (originally 20141117204630)
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

9 entries across 9 versions & 3 rubygems

Version Path
push_type_core-0.1.1 test/dummy/db/migrate/20150108182219_create_push_type_nodes.push_type.rb
push_type_auth-0.1.1 test/dummy/db/migrate/20150108182241_create_push_type_nodes.push_type.rb
push_type_admin-0.1.1 test/dummy/db/migrate/20150108182227_create_push_type_nodes.push_type.rb
push_type_core-0.1.0 test/dummy/db/migrate/20150102204404_create_push_type_nodes.push_type.rb
push_type_auth-0.1.0 test/dummy/db/migrate/20150102204444_create_push_type_nodes.push_type.rb
push_type_admin-0.1.0 test/dummy/db/migrate/20150102204419_create_push_type_nodes.push_type.rb
push_type_core-0.1.0.beta3 test/dummy/db/migrate/20141205213453_create_push_type_nodes.push_type.rb
push_type_auth-0.1.0.beta3 test/dummy/db/migrate/20141205213534_create_push_type_nodes.push_type.rb
push_type_admin-0.1.0.beta3 test/dummy/db/migrate/20141205213507_create_push_type_nodes.push_type.rb