add weekly maintenance script
This commit is contained in:
11
db/migrate/20130331180246_create_key_values.rb
Normal file
11
db/migrate/20130331180246_create_key_values.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
class CreateKeyValues < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :key_values do |t|
|
||||
t.string :key, :null => false
|
||||
t.text :value
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :key_values, :key, :unique => true
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user