spec/schema.rb in active_enum-0.8.2 vs spec/schema.rb in active_enum-0.9.0
- old
+ new
@@ -10,6 +10,17 @@
create_table :sexes, :force => true do |t|
t.string :name
end
+ create_table :enums, :force => true do |t|
+ t.integer :enum_id
+ t.string :name
+ t.string :enum_type
+ t.string :meta
+ t.datetime :modified_at
+ end
+ add_index :enums, [:enum_id, :enum_type], :unique => true
+ add_index :enums, [:name, :enum_type]
+ add_index :enums, [:modified_at, :enum_type]
+
end