mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-26 20:41:01 +00:00
12 lines
260 B
Ruby
12 lines
260 B
Ruby
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
|