Sha256: 48bdeb2e2cc9f33826bb44edb0c54b74eb089e3161fc0cef688e186e3c52c511

Contents?: true

Size: 670 Bytes

Versions: 20

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.jsonb     :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

20 entries across 20 versions & 4 rubygems

Version Path
push_type_wysiwyg-0.3.3 test/dummy/db/migrate/20150310192222_create_push_type_nodes.push_type.rb
push_type_core-0.3.3 test/dummy/db/migrate/20150310192150_create_push_type_nodes.push_type.rb
push_type_auth-0.3.3 test/dummy/db/migrate/20150310192232_create_push_type_nodes.push_type.rb
push_type_admin-0.3.3 test/dummy/db/migrate/20150310192203_create_push_type_nodes.push_type.rb
push_type_wysiwyg-0.3.1 test/dummy/db/migrate/20150222152514_create_push_type_nodes.push_type.rb
push_type_core-0.3.1 test/dummy/db/migrate/20150222152444_create_push_type_nodes.push_type.rb
push_type_auth-0.3.1 test/dummy/db/migrate/20150222152524_create_push_type_nodes.push_type.rb
push_type_admin-0.3.1 test/dummy/db/migrate/20150222152456_create_push_type_nodes.push_type.rb
push_type_wysiwyg-0.2.1 test/dummy/db/migrate/20150209204403_create_push_type_nodes.push_type.rb
push_type_core-0.2.1 test/dummy/db/migrate/20150209204335_create_push_type_nodes.push_type.rb
push_type_auth-0.2.1 test/dummy/db/migrate/20150209204413_create_push_type_nodes.push_type.rb
push_type_admin-0.2.1 test/dummy/db/migrate/20150209204346_create_push_type_nodes.push_type.rb
push_type_wysiwyg-0.2.0 test/dummy/db/migrate/20150209204403_create_push_type_nodes.push_type.rb
push_type_core-0.2.0 test/dummy/db/migrate/20150209204335_create_push_type_nodes.push_type.rb
push_type_auth-0.2.0 test/dummy/db/migrate/20150209204413_create_push_type_nodes.push_type.rb
push_type_admin-0.2.0 test/dummy/db/migrate/20150209204346_create_push_type_nodes.push_type.rb
push_type_wysiwyg-0.2.0.beta2 test/dummy/db/migrate/20150208150337_create_push_type_nodes.push_type.rb
push_type_core-0.2.0.beta2 test/dummy/db/migrate/20150208150306_create_push_type_nodes.push_type.rb
push_type_auth-0.2.0.beta2 test/dummy/db/migrate/20150208150347_create_push_type_nodes.push_type.rb
push_type_admin-0.2.0.beta2 test/dummy/db/migrate/20150208150317_create_push_type_nodes.push_type.rb