Sha256: 75453aa63fdf91fe91356634b1803860ecb9bb3d289b921de75b216487540008

Contents?: true

Size: 336 Bytes

Versions: 20

Compression:

Stored size: 336 Bytes

Contents

class NodeHabtmRoles < ActiveRecord::Migration
  def self.up

    create_table('nodes_roles', :options => Zena::Db.table_options, :id => false) do |t|
      t.integer 'node_id', :default => 0, :null => false
      t.integer 'role_id', :default => 0, :null => false
    end
  end

  def self.down
    drop_table('nodes_roles')
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
zena-1.2.8 db/fix/old_migrations/20100422094048_node_habtm_roles.rb
zena-1.2.7 db/fix/old_migrations/20100422094048_node_habtm_roles.rb
zena-1.2.6 db/fix/old_migrations/20100422094048_node_habtm_roles.rb
zena-1.2.5 db/fix/old_migrations/20100422094048_node_habtm_roles.rb
zena-1.2.4 db/fix/old_migrations/20100422094048_node_habtm_roles.rb
zena-1.2.3 db/fix/old_migrations/20100422094048_node_habtm_roles.rb
zena-1.2.2 db/fix/old_migrations/20100422094048_node_habtm_roles.rb
zena-1.2.1 db/fix/old_migrations/20100422094048_node_habtm_roles.rb
zena-1.2.0 db/fix/old_migrations/20100422094048_node_habtm_roles.rb
zena-1.1.3 db/fix/old_migrations/20100422094048_node_habtm_roles.rb
zena-1.1.2 db/fix/old_migrations/20100422094048_node_habtm_roles.rb
zena-1.1.1 db/fix/old_migrations/20100422094048_node_habtm_roles.rb
zena-1.1.0 db/fix/old_migrations/20100422094048_node_habtm_roles.rb
zena-1.0.0 db/fix/old_migrations/20100422094048_node_habtm_roles.rb
zena-1.0.0.rc3 db/fix/old_migrations/20100422094048_node_habtm_roles.rb
zena-1.0.0.rc2 db/fix/old_migrations/20100422094048_node_habtm_roles.rb
zena-1.0.0.rc1 db/fix/old_migrations/20100422094048_node_habtm_roles.rb
zena-1.0.0.beta3 db/migrate/20100422094048_node_habtm_roles.rb
zena-1.0.0.beta2 db/migrate/20100422094048_node_habtm_roles.rb
zena-1.0.0.beta1 db/migrate/20100422094048_node_habtm_roles.rb