Sha256: 57db254e7e97379262952a1b36c20b25311390184ceef5e5de58e6ac245f5cb0

Contents?: true

Size: 652 Bytes

Versions: 33

Compression:

Stored size: 652 Bytes

Contents

class CreateVirtualClasses < ActiveRecord::Migration
  def self.up
    create_table(:virtual_classes, :options => Zena::Db.table_options) do |t|
      t.column :name, :string
      t.column :kpath, :string, :limit => 16
      t.column :real_class, :string, :limit => 16
      t.column :icon, :string, :limit => 200
      t.column :allowed_attributes, :text
      t.column :create_group_id, :integer # who is allowed to create objects of this type

      t.column :site_id, :integer, :null => false
    end
    add_column :nodes, :vclass_id, :integer
  end

  def self.down
    drop_table :virtual_classes
    remove_column :nodes, :vclass_id
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
zena-1.2.8 db/fix/old_migrations/022_create_virtual_classes.rb
zena-1.2.7 db/fix/old_migrations/022_create_virtual_classes.rb
zena-1.2.6 db/fix/old_migrations/022_create_virtual_classes.rb
zena-1.2.5 db/fix/old_migrations/022_create_virtual_classes.rb
zena-1.2.4 db/fix/old_migrations/022_create_virtual_classes.rb
zena-1.2.3 db/fix/old_migrations/022_create_virtual_classes.rb
zena-1.2.2 db/fix/old_migrations/022_create_virtual_classes.rb
zena-1.2.1 db/fix/old_migrations/022_create_virtual_classes.rb
zena-1.2.0 db/fix/old_migrations/022_create_virtual_classes.rb
zena-1.1.3 db/fix/old_migrations/022_create_virtual_classes.rb
zena-1.1.2 db/fix/old_migrations/022_create_virtual_classes.rb
zena-1.1.1 db/fix/old_migrations/022_create_virtual_classes.rb
zena-1.1.0 db/fix/old_migrations/022_create_virtual_classes.rb
zena-1.0.0 db/fix/old_migrations/022_create_virtual_classes.rb
zena-1.0.0.rc3 db/fix/old_migrations/022_create_virtual_classes.rb
zena-1.0.0.rc2 db/fix/old_migrations/022_create_virtual_classes.rb
zena-1.0.0.rc1 db/fix/old_migrations/022_create_virtual_classes.rb
zena-0.16.9 db/migrate/022_create_virtual_classes.rb
zena-1.0.0.beta3 db/migrate/022_create_virtual_classes.rb
zena-0.16.8 db/migrate/022_create_virtual_classes.rb