diff options
Diffstat (limited to 'activerecord/test/fixtures')
-rw-r--r-- | activerecord/test/fixtures/db_definitions/sqlite.sql | 5 | ||||
-rw-r--r-- | activerecord/test/fixtures/funny_jokes.yml | 14 | ||||
-rw-r--r-- | activerecord/test/fixtures/joke.rb | 6 |
3 files changed, 25 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/db_definitions/sqlite.sql b/activerecord/test/fixtures/db_definitions/sqlite.sql index 685c2abc8b..5a7fec3d7e 100644 --- a/activerecord/test/fixtures/db_definitions/sqlite.sql +++ b/activerecord/test/fixtures/db_definitions/sqlite.sql @@ -4,6 +4,11 @@ CREATE TABLE 'accounts' ( 'credit_limit' INTEGER DEFAULT NULL ); +CREATE TABLE 'funny_jokes' ( + 'id' INTEGER PRIMARY KEY NOT NULL, + 'name' TEXT DEFAULT NULL +); + CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'type' VARCHAR(255) DEFAULT NULL, diff --git a/activerecord/test/fixtures/funny_jokes.yml b/activerecord/test/fixtures/funny_jokes.yml new file mode 100644 index 0000000000..834481bc60 --- /dev/null +++ b/activerecord/test/fixtures/funny_jokes.yml @@ -0,0 +1,14 @@ +a_joke: + id: 1 + name: Knock knock + +another_joke: + id: 2 + name: The Aristocrats +a_joke: + id: 1 + name: Knock knock + +another_joke: + id: 2 + name: The Aristocrats
\ No newline at end of file diff --git a/activerecord/test/fixtures/joke.rb b/activerecord/test/fixtures/joke.rb new file mode 100644 index 0000000000..8006a43bd7 --- /dev/null +++ b/activerecord/test/fixtures/joke.rb @@ -0,0 +1,6 @@ +class Joke < ActiveRecord::Base + set_table_name 'funny_jokes' +end +class Joke < ActiveRecord::Base + set_table_name 'funny_jokes' +end
\ No newline at end of file |