Sha256: afb45694daf7bff501c7e09cee12651690b34a57cb3d4da66f0dafbea9be3834

Contents?: true

Size: 436 Bytes

Versions: 18

Compression:

Stored size: 436 Bytes

Contents

# encoding: utf-8

class CreateUserVariants < ActiveRecord::Migration

  def self.user_tables
    [:users_with_fulltext, :users_without_fulltext]
  end

  def self.up
    user_tables.each do |user_table|
      create_table user_table do |t|
        t.string :name
        t.string :email
        t.string :city
      end
    end
  end

  def self.down
    user_tables.each do |user_table|
      drop_table user_table
    end
  end

end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
dusen-0.6.1 spec/shared/app_root/db/migrate/002_create_user_variants.rb
dusen-0.6.0 spec/shared/app_root/db/migrate/002_create_user_variants.rb
dusen-0.5.3 spec/shared/app_root/db/migrate/002_create_user_variants.rb
dusen-0.5.2 spec/shared/app_root/db/migrate/002_create_user_variants.rb
dusen-0.5.1 spec/shared/app_root/db/migrate/002_create_user_variants.rb
dusen-0.5 spec/shared/app_root/db/migrate/002_create_user_variants.rb
dusen-0.4.11 spec/shared/app_root/db/migrate/002_create_user_variants.rb
dusen-0.4.10 spec/shared/app_root/db/migrate/002_create_user_variants.rb
dusen-0.4.9 spec/shared/app_root/db/migrate/002_create_user_variants.rb
dusen-0.4.8 spec/shared/app_root/db/migrate/002_create_user_variants.rb
dusen-0.4.6 spec/shared/app_root/db/migrate/002_create_user_variants.rb
dusen-0.4.5 spec/shared/app_root/db/migrate/002_create_user_variants.rb
dusen-0.4.4 spec/shared/app_root/db/migrate/002_create_user_variants.rb
dusen-0.4.3 spec/shared/app_root/db/migrate/002_create_user_variants.rb
dusen-0.4.2 spec/shared/app_root/db/migrate/002_create_user_variants.rb
dusen-0.4.1 spec/shared/app_root/db/migrate/002_create_user_variants.rb
dusen-0.4.0 spec/shared/app_root/db/migrate/002_create_user_variants.rb
dusen-0.3.0 spec/shared/app_root/db/migrate/002_create_user_variants.rb