User contributions for Admin
19 October 2023
- 16:5016:50, 19 October 2023 diff hist +75 Welcome to ElixirBlocks No edit summary
- 16:2716:27, 19 October 2023 diff hist +13 Create Foreign Key Relationship Between Ecto Tables No edit summary
- 16:1716:17, 19 October 2023 diff hist −1 How to Generate a Migration File No edit summary current
- 16:1616:16, 19 October 2023 diff hist +75 How to Set a Unique Constraint to a Table Field No edit summary current
- 16:1416:14, 19 October 2023 diff hist −20 How to Generate a Migration File No edit summary
- 16:1216:12, 19 October 2023 diff hist +15 How to Generate a Migration File No edit summary
- 16:1216:12, 19 October 2023 diff hist −3 How to Generate a Migration File No edit summary
- 16:1116:11, 19 October 2023 diff hist +910 N How to Generate a Migration File Created page with "A migration file lets you update and create table data. ==Generate a migration file== A migration file is generated using a console command. After it is generated, you write code that configures table fields and then invoke the migration file. The command to create a migration file is: <source> mix ecto.gen.migration name_of_migration </source> For this example, I will add a new field named owner <source> mix ecto.gen.migration create_owner_field </source> The mi..."
- 16:0416:04, 19 October 2023 diff hist +1 How to Set a Unique Constraint to a Table Field No edit summary
- 15:5615:56, 19 October 2023 diff hist +288 How to Set a Unique Constraint to a Table Field No edit summary
- 15:5515:55, 19 October 2023 diff hist +199 N How to Set a Unique Constraint to a Table Field Created page with "If you already have a table and retroactively want to set a field to only allow unique values, you need to create a migration with: <source> create unique_index(:table_name, [:field_name]) </source>"
- 13:5413:54, 19 October 2023 diff hist +65 User:Admin No edit summary
- 13:3913:39, 19 October 2023 diff hist +94 N How to Delete A Table That has many Without Deleting Children Admin moved page How to Delete A Table That has many Without Deleting Children to How to Delete A Table That Contains a "has many" Value Without Deleting Children current Tag: New redirect
- 13:3913:39, 19 October 2023 diff hist 0 m How to Delete A Table That Contains a "has many" Value Without Deleting Children Admin moved page How to Delete A Table That has many Without Deleting Children to How to Delete A Table That Contains a "has many" Value Without Deleting Children current
- 13:3813:38, 19 October 2023 diff hist +1,363 N How to Delete A Table That Contains a "has many" Value Without Deleting Children Created page with " If you have a table that you are trying to delete and the table contains a has_many relationship, you may get an error similar to the one below when you attempt to delete the parent table. ===Error=== <source> constraint error when attempting to delete struct: * item_id_fkey (foreign_key_constraint) If you would like to stop this constraint violation from raising an exception and instead add it as an error to your changeset, please call `foreign_key_constraint/3`..."
- 11:2111:21, 19 October 2023 diff hist +1 Create Foreign Key Relationship Between Ecto Tables No edit summary
- 11:2011:20, 19 October 2023 diff hist −4 Create Foreign Key Relationship Between Ecto Tables No edit summary
- 11:1511:15, 19 October 2023 diff hist +62 Create Foreign Key Relationship Between Ecto Tables No edit summary
- 11:1411:14, 19 October 2023 diff hist +62 Create Foreign Key Relationship Between Ecto Tables No edit summary
18 October 2023
- 21:0121:01, 18 October 2023 diff hist +65 User:Admin No edit summary
- 21:0021:00, 18 October 2023 diff hist +85 User:Admin No edit summary
- 19:0219:02, 18 October 2023 diff hist +6 Working Example of Phoenix Built in Form Component No edit summary current
- 19:0119:01, 18 October 2023 diff hist +136 Working Example of Phoenix Built in Form Component No edit summary
- 19:0019:00, 18 October 2023 diff hist −4 Working Example of Phoenix Built in Form Component No edit summary
- 18:5918:59, 18 October 2023 diff hist +7 Working Example of Phoenix Built in Form Component No edit summary
- 18:5918:59, 18 October 2023 diff hist +553 N Working Example of Phoenix Built in Form Component Created page with " <source> defmodule AppWeb.PageLive do use AppWeb, :live_view def mount(_params, _session, socket) do {:ok, assign(socket, form: to_form(%{}, as: :my_form))} end def handle_event("save", params, socket) do {:noreply, socket} end def render(assigns) do ~H""" <.form for={@form} phx-change="validate" phx-submit="save"> <.input type="text" field={@form[:username]} /> <.input type="email" field={@form[:email]} />..."
- 11:4511:45, 18 October 2023 diff hist −1 User:Admin No edit summary
- 09:3909:39, 18 October 2023 diff hist +172 User:Admin No edit summary
- 08:5708:57, 18 October 2023 diff hist +1,857 User:Admin No edit summary
- 08:0508:05, 18 October 2023 diff hist +19 User:Admin No edit summary
17 October 2023
- 20:2420:24, 17 October 2023 diff hist +2,377 User:Admin No edit summary
- 13:3113:31, 17 October 2023 diff hist +1,137 User:Admin No edit summary
16 October 2023
- 17:1317:13, 16 October 2023 diff hist +15 How to Use phx-change with a Select Element in Phoenix No edit summary current
- 16:1816:18, 16 October 2023 diff hist −16 How to Use phx-change with a Select Element in Phoenix No edit summary
- 16:1816:18, 16 October 2023 diff hist +896 N How to Use phx-change with a Select Element in Phoenix Created page with " Example: Render <source> defmodule AppWeb.GroupLive do use AppWeb, :live_view alias App.TestBeds alias App.Groups def mount(_params, _session, socket) do {:ok, assign(socket, testbeds: TestBeds.list_testbeds(), groups: Groups.list_groups())} end def handle_event("select-group", params, socket) do IO.inspect params {:noreply, socket} end def render(assigns) do ~H""" <div> TestBed Name</div> <%= for testbed <- @..."
15 October 2023
- 18:5818:58, 15 October 2023 diff hist −5 Understanding Forms and Changesets No edit summary
- 18:1618:16, 15 October 2023 diff hist +93 User:Admin No edit summary
- 03:5103:51, 15 October 2023 diff hist 0 Understanding Forms and Changesets No edit summary
- 03:5003:50, 15 October 2023 diff hist +345 Understanding Forms and Changesets No edit summary
- 03:4603:46, 15 October 2023 diff hist +332 Understanding Forms and Changesets No edit summary
- 03:3403:34, 15 October 2023 diff hist +261 Understanding Forms and Changesets No edit summary
- 03:1703:17, 15 October 2023 diff hist −44 Understanding Forms and Changesets No edit summary
- 03:1403:14, 15 October 2023 diff hist +97 Understanding Forms and Changesets No edit summary
- 03:0803:08, 15 October 2023 diff hist +722 Understanding Forms and Changesets No edit summary
- 02:5602:56, 15 October 2023 diff hist +172 Understanding Forms and Changesets No edit summary
- 02:5202:52, 15 October 2023 diff hist +238 Understanding Forms and Changesets No edit summary
- 01:0901:09, 15 October 2023 diff hist +630 Understanding Forms and Changesets No edit summary
- 00:5900:59, 15 October 2023 diff hist +21 Understanding Forms and Changesets No edit summary
- 00:5900:59, 15 October 2023 diff hist +19 Understanding Forms and Changesets No edit summary
- 00:5800:58, 15 October 2023 diff hist +387 Understanding Forms and Changesets No edit summary