update with changes from Production branch
This commit is contained in:
18
db/migrate/20101116224140_create_api_keys.rb
Normal file
18
db/migrate/20101116224140_create_api_keys.rb
Normal file
@ -0,0 +1,18 @@
|
||||
class CreateApiKeys < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :api_keys do |t|
|
||||
t.string :api_key, :limit => 16
|
||||
t.integer :device_id
|
||||
t.integer :feed_id
|
||||
t.integer :user_id
|
||||
t.boolean :write_flag, :default => 0
|
||||
t.boolean :public_flag, :default => 0
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table :api_keys
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user