ensl.org/db/migrate/20171109165433_create_custom_urls.rb

13 lines
260 B
Ruby
Raw Normal View History

class CreateCustomUrls < ActiveRecord::Migration
def change
create_table :custom_urls do |t|
t.string :name
t.references :article
t.timestamps
end
add_index :custom_urls, :name
add_index :custom_urls, :article_id
end
end