mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 17:04:23 -05:00
Added Customer Token Model
This commit is contained in:
3
app/models/customer_token.rb
Normal file
3
app/models/customer_token.rb
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
class CustomerToken < ActiveRecord::Base
|
||||||
|
unloadable
|
||||||
|
end
|
||||||
13
db/migrate/023_create_customer_tokens.rb
Normal file
13
db/migrate/023_create_customer_tokens.rb
Normal file
@@ -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
|
||||||
9
test/unit/customer_token_test.rb
Normal file
9
test/unit/customer_token_test.rb
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user