aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--db/migrate/20121211085620_create_api_key.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/db/migrate/20121211085620_create_api_key.rb b/db/migrate/20121211085620_create_api_key.rb
new file mode 100644
index 000000000..6fa225876
--- /dev/null
+++ b/db/migrate/20121211085620_create_api_key.rb
@@ -0,0 +1,14 @@
+class CreateApiKey < ActiveRecord::Migration
+ def up
+ create_table :api_keys do |a|
+ a.belongs_to :referential
+ a.string :token
+ a.string :name
+ a.timestamps
+ end
+ end
+
+ def down
+ drop_table :api_keys
+ end
+end