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