You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
624 B

13 years ago
class CreateRecords < ActiveRecord::Migration
def change
create_table :records do |t|
t.references :domain
t.string :name, :limit => 255
t.string :type, :limit => 10
t.string :content, :limit => 255
t.integer :ttl
t.integer :prio
t.integer :change_date
13 years ago
t.string :authentication_token
13 years ago
t.timestamps
end
add_index :records, :name, :name => 'rec_name_index'
add_index :records, [:name, :type], :name => 'nametype_index'
add_index :records, :domain_id, :name => 'domain_id'
13 years ago
add_index :records, :authentication_token, :unique => true
13 years ago
end
end