summaryrefslogtreecommitdiff
path: root/db/migrate/20130215112028_create_sim_cards.rb
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-15 14:49:16 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-15 14:49:16 +0100
commit3d11d0a3a047a12bfd40b61252e269cabac76225 (patch)
treec16baf628633205b2e664f86f2e0038f3ee3b097 /db/migrate/20130215112028_create_sim_cards.rb
parent124a421b19e08447fa790b65cc969dadd7408539 (diff)
Basic structure for sim_cards and sim_card_providers.
Diffstat (limited to 'db/migrate/20130215112028_create_sim_cards.rb')
-rw-r--r--db/migrate/20130215112028_create_sim_cards.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/db/migrate/20130215112028_create_sim_cards.rb b/db/migrate/20130215112028_create_sim_cards.rb
new file mode 100644
index 0000000..8962a1f
--- /dev/null
+++ b/db/migrate/20130215112028_create_sim_cards.rb
@@ -0,0 +1,18 @@
+class CreateSimCards < ActiveRecord::Migration
+ def self.up
+ create_table :sim_cards do |t|
+ t.integer :sim_card_provider_id
+ t.string :sim_number
+ t.boolean :auto_order_card
+ t.integer :sip_account_id
+ t.string :auth_key
+ t.string :state
+ t.text :log
+ t.timestamps
+ end
+ end
+
+ def self.down
+ drop_table :sim_cards
+ end
+end