diff --git a/app/models/ac_number.rb b/app/models/ac_number.rb new file mode 100644 index 0000000000000000000000000000000000000000..af53f6cd6625bc760ea1ba549f1a87f7ff59ca30 --- /dev/null +++ b/app/models/ac_number.rb @@ -0,0 +1,3 @@ +class AcNumber < ActiveRecord::Base + unloadable +end diff --git a/app/models/eprint.rb b/app/models/eprint.rb new file mode 100644 index 0000000000000000000000000000000000000000..bee904fdd5d97a00fec8a69103014e0e2d2490ed --- /dev/null +++ b/app/models/eprint.rb @@ -0,0 +1,3 @@ +class Eprint < ActiveRecord::Base + unloadable +end diff --git a/db/migrate/001_create_eprints.rb b/db/migrate/001_create_eprints.rb new file mode 100644 index 0000000000000000000000000000000000000000..5b114b9d20f92c3880e61b4f212b3d197e9bb256 --- /dev/null +++ b/db/migrate/001_create_eprints.rb @@ -0,0 +1,18 @@ +class CreateEprints < ActiveRecord::Migration + def change + create_table :eprints do |t| + t.integer :eprint_id + t.string :eprint_status + t.string :eprint_type + t.string :eprint_sperre + t.string :eprint_einverstaendnis + t.string :ac_number + t.string :ac_number_status + t.string :matr + t.string :matr_status + t.string :urn + t.string :urn_status + t.string :item_status + end + end +end diff --git a/db/migrate/002_create_ac_numbers.rb b/db/migrate/002_create_ac_numbers.rb new file mode 100644 index 0000000000000000000000000000000000000000..f04a32b55fd6a3e5a8ded59820cba2d248f7e260 --- /dev/null +++ b/db/migrate/002_create_ac_numbers.rb @@ -0,0 +1,19 @@ +class CreateAcNumbers < ActiveRecord::Migration + def change + create_table :ac_numbers do |t| + t.string :ac_number + t.string :context + t.string :context_id + t.string :context_url + t.integer :xml_ts + t.string :xml_urn + t.string :xml_url + t.string :item_status + t.string :error_source + t.string :error_text + t.string :urn_status + t.string :urn_req_id + t.string :urn_value + end + end +end diff --git a/test/unit/ac_number_test.rb b/test/unit/ac_number_test.rb new file mode 100644 index 0000000000000000000000000000000000000000..56fcfb4ad9f977ebd580fc648fad9f426269b877 --- /dev/null +++ b/test/unit/ac_number_test.rb @@ -0,0 +1,9 @@ +require File.expand_path('../../test_helper', __FILE__) + +class AcNumberTest < ActiveSupport::TestCase + + # Replace this with your real tests. + def test_truth + assert true + end +end diff --git a/test/unit/eprint_test.rb b/test/unit/eprint_test.rb new file mode 100644 index 0000000000000000000000000000000000000000..0456f09ae28eca723fb85a277b61805161d82d0e --- /dev/null +++ b/test/unit/eprint_test.rb @@ -0,0 +1,9 @@ +require File.expand_path('../../test_helper', __FILE__) + +class EprintTest < ActiveSupport::TestCase + + # Replace this with your real tests. + def test_truth + assert true + end +end