Sha256: 249f3d137f1a4bdb7f563e246d361e9ecd8793f07485295da46f14dda6343a7c
Contents?: true
Size: 732 Bytes
Versions: 33
Compression:
Stored size: 732 Bytes
Contents
class CreateRelations < ActiveRecord::Migration def self.up create_table(:relations, :options => Zena::Db.table_options) do |t| t.column :source_role, :string, :limit => 32 t.column :source_kpath, :string, :limit => 16 t.column :source_unique, :boolean t.column :source_icon, :string, :limit => 200 t.column :target_role, :string, :limit => 32 t.column :target_kpath, :string, :limit => 16 t.column :target_unique, :boolean t.column :target_icon, :string, :limit => 200 t.column :site_id, :integer, :null => false end add_column :links, 'relation_id', :integer end def self.down drop_table :relations remove_column :links, 'relation_id' end end
Version data entries
33 entries across 33 versions & 1 rubygems