diff options
Diffstat (limited to 'activerecord/test/fixtures')
-rw-r--r-- | activerecord/test/fixtures/db_definitions/schema.rb | 4 | ||||
-rw-r--r-- | activerecord/test/fixtures/warehouse-things.yml | 3 | ||||
-rw-r--r-- | activerecord/test/fixtures/warehouse_thing.rb | 5 |
3 files changed, 12 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/db_definitions/schema.rb b/activerecord/test/fixtures/db_definitions/schema.rb index a943b84f42..d5affc2ab1 100644 --- a/activerecord/test/fixtures/db_definitions/schema.rb +++ b/activerecord/test/fixtures/db_definitions/schema.rb @@ -351,4 +351,8 @@ ActiveRecord::Schema.define do t.datetime :updated_at t.datetime :updated_on end + + create_table 'warehouse-things', :force => true do |t| + t.integer :value + end end diff --git a/activerecord/test/fixtures/warehouse-things.yml b/activerecord/test/fixtures/warehouse-things.yml new file mode 100644 index 0000000000..9e07ba7db5 --- /dev/null +++ b/activerecord/test/fixtures/warehouse-things.yml @@ -0,0 +1,3 @@ +one: + id: 1 + value: 1000
\ No newline at end of file diff --git a/activerecord/test/fixtures/warehouse_thing.rb b/activerecord/test/fixtures/warehouse_thing.rb new file mode 100644 index 0000000000..6ace1183cc --- /dev/null +++ b/activerecord/test/fixtures/warehouse_thing.rb @@ -0,0 +1,5 @@ +class WarehouseThing < ActiveRecord::Base + set_table_name "warehouse-things" + + validates_uniqueness_of :value +end
\ No newline at end of file |