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