Sha256: 33c127760f4ea4bcfa13a1c15b52216dada443d3e632180b31862a1a9c0b7d53

Contents?: true

Size: 264 Bytes

Versions: 5

Compression:

Stored size: 264 Bytes

Contents

class RolesUsers < ActiveRecord::Migration
  def self.up
    create_table :roles_users, :id => false, :force => true do |t|
      t.references  :user
      t.references  :role
      t.timestamps
    end
  end

  def self.down
    drop_table :roles_users
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
merrycms-0.1.7 lib/generators/merrycms/templates/roles_users_migration.rb
merrycms-0.1.4 lib/generators/merrycms/templates/roles_users_migration.rb
merrycms-0.1.2 lib/generators/merrycms/templates/roles_users_migration.rb
merrycms-0.1.1 lib/generators/merrycms/templates/roles_users_migration.rb
merrycms-0.1.0 lib/generators/merrycms/templates/roles_users_migration.rb