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.0.0.beta2 db/migrate/022_create_virtual_classes.rb
zena-1.0.0.beta1 db/migrate/022_create_virtual_classes.rb
zena-0.16.7 db/migrate/022_create_virtual_classes.rb
zena-0.16.6 db/migrate/022_create_virtual_classes.rb
zena-0.16.5 db/migrate/022_create_virtual_classes.rb
zena-0.16.4 db/migrate/022_create_virtual_classes.rb
zena-0.16.3 db/migrate/022_create_virtual_classes.rb
zena-0.16.2 db/migrate/022_create_virtual_classes.rb
zena-0.16.1 db/migrate/022_create_virtual_classes.rb
zena-0.16.0 db/migrate/022_create_virtual_classes.rb
zena-0.15.2 db/migrate/022_create_virtual_classes.rb
zena-0.15.1 db/migrate/022_create_virtual_classes.rb
zena-0.15.0 db/migrate/022_create_virtual_classes.rb