diff --git a/app/models/customer_token.rb b/app/models/customer_token.rb new file mode 100644 index 0000000..859ceb3 --- /dev/null +++ b/app/models/customer_token.rb @@ -0,0 +1,3 @@ +class CustomerToken < ActiveRecord::Base + unloadable +end diff --git a/db/migrate/023_create_customer_tokens.rb b/db/migrate/023_create_customer_tokens.rb new file mode 100644 index 0000000..1de0100 --- /dev/null +++ b/db/migrate/023_create_customer_tokens.rb @@ -0,0 +1,13 @@ +class CreateCustomerTokens < ActiveRecord::Migration + def change + create_table :customer_tokens do |t| + + t.string :token + + t.timestamp :expires_at + + + end + + end +end diff --git a/test/unit/customer_token_test.rb b/test/unit/customer_token_test.rb new file mode 100644 index 0000000..cf17fc0 --- /dev/null +++ b/test/unit/customer_token_test.rb @@ -0,0 +1,9 @@ +require File.expand_path('../../test_helper', __FILE__) + +class CustomerTokenTest < ActiveSupport::TestCase + + # Replace this with your real tests. + def test_truth + assert true + end +end