Sha256: 5d01d81f2fbb6d7990343f37ab122713c5c3b050d993c3a790e5abc1f70459c6

Contents?: true

Size: 290 Bytes

Versions: 2

Compression:

Stored size: 290 Bytes

Contents

class CreateUserGroups < ActiveRecord::Migration
  def self.up
    create_table :user_groups do |t|
      t.string :name

      t.timestamps
    end
		create_join_table :user_groups, :users
  end

  def self.down
		drop_join_table :user_groups, :users
    drop_table :user_groups
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lockdown-0.1.3 rails_generators/lockdown_all/templates/db/migrate/create_user_groups.rb
lockdown-0.1.4 rails_generators/lockdown_all/templates/db/migrate/create_user_groups.rb