Sha256: 132eb0373f07aaf3b39be3e20bc785ee9e2794ec895b4889d23522f6e6ad0e18

Contents?: true

Size: 364 Bytes

Versions: 104

Compression:

Stored size: 364 Bytes

Contents

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

      t.timestamps
    end

    create_table :user_groups_users, :id => false do |t|
      t.integer :user_group_id
      t.integer :user_id
    end
  end

  def self.down
		drop_table :user_groups_users
    drop_table :user_groups
  end
end

Version data entries

104 entries across 103 versions & 7 rubygems

Version Path
andrewzielinski-lockdown-0.9.6 rails_generators/lockdown/templates/db/migrate/create_user_groups.rb
blaxter-lockdown-0.9.8.99 rails_generators/lockdown/templates/db/migrate/create_user_groups.rb
blaxter-lockdown-0.9.9 rails_generators/lockdown/templates/db/migrate/create_user_groups.rb
hone-lockdown-1.2.1 rails_generators/lockdown/templates/db/migrate/create_user_groups.rb
hone-lockdown-1.2.2 rails_generators/lockdown/templates/db/migrate/create_user_groups.rb
hone-lockdown-1.2.3 rails_generators/lockdown/templates/db/migrate/create_user_groups.rb
revo-lockdown-0.9.6 rails_generators/lockdown/templates/db/migrate/create_user_groups.rb
lockdown_vail-1.6.2.1 rails_generators/lockdown/templates/db/migrate/create_user_groups.rb
lockdown-1.6.5 rails_generators/lockdown/templates/db/migrate/create_user_groups.rb
revo-lockdown-1.6.2.2 rails_generators/lockdown/templates/db/migrate/create_user_groups.rb
lockdown-1.6.4 rails_generators/lockdown/templates/db/migrate/create_user_groups.rb
lockdown-1.6.3 rails_generators/lockdown/templates/db/migrate/create_user_groups.rb
revo-lockdown-1.6.2.1 rails_generators/lockdown/templates/db/migrate/create_user_groups.rb
revo-lockdown-1.6.2 rails_generators/lockdown/templates/db/migrate/create_user_groups.rb
lockdown-1.6.2 rails_generators/lockdown/templates/db/migrate/create_user_groups.rb
lockdown-1.6.1 rails_generators/lockdown/templates/db/migrate/create_user_groups.rb
lockdown-1.6.0 rails_generators/lockdown/templates/db/migrate/create_user_groups.rb
lockdown-1.5.1 rails_generators/lockdown/templates/db/migrate/create_user_groups.rb
lockdown-1.5.0 rails_generators/lockdown/templates/db/migrate/create_user_groups.rb
gemstreamer-1.2.0 spec/assets/testapp/db/migrate/20091031093230_create_user_groups.rb