spec/schema.rb in person-name-0.2.2 vs spec/schema.rb in person-name-0.2.3
- old
+ new
@@ -1,11 +1,16 @@
ActiveRecord::Schema.define :version => 0 do
create_table "people", :force => true do |t|
- t.string "name_prefix"
- t.string "name_first_name"
- t.string "name_middle_name"
- t.string "name_intercalation"
- t.string "name_last_name"
- t.string "name_suffix"
+ PersonName::MigrationSupport.add_name_columns(t, :name)
+ end
+
+ create_table "person_without_names", :force => true do |t|
+ t.boolean :female
+ end
+
+ create_table "name_people", :force => true do |t|
+ PersonName::MigrationSupport.add_name_columns(t, :name)
+ PersonName::MigrationSupport.add_name_columns(t, :birth_name)
+ t.boolean :female
end
end